-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- install source jar when it is found - fixes #6
- set the remote repos on the artifact request so they can be downloaded - fixes #7
- Loading branch information
Showing
10 changed files
with
158 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
def root = new File(basedir, 'target/modules/javax/inject/javax/inject/1') | ||
return new File(root, 'javax.inject.javax.inject-1.jar').exists() && | ||
new File(root, 'javax.inject.javax.inject-1.jar.sha1').exists() | ||
new File(root, 'javax.inject.javax.inject-1.jar.sha1').exists() && | ||
new File(root, 'javax.inject.javax.inject-1-sources.jar').exists() && | ||
new File(root, 'javax.inject.javax.inject-1-sources.jar.sha1').exists() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.ceylon-lang.test</groupId> | ||
<artifactId>compile-default</artifactId> | ||
<version>1.2.1-SNAPSHOT</version> | ||
|
||
<name>compile-default</name> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.ceylon-lang</groupId> | ||
<artifactId>ceylon-maven-plugin</artifactId> | ||
<version>1.2.1-SNAPSHOT</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>import-dependency</goal> | ||
</goals> | ||
<configuration> | ||
<moduleImports> | ||
<moduleImport> | ||
<!-- 1.0 does not have -sources.jar --> | ||
<dependency> | ||
<groupId>javax.portlet</groupId> | ||
<artifactId>portlet-api</artifactId> | ||
<version>1.0</version> | ||
</dependency> | ||
</moduleImport> | ||
</moduleImports> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
5 changes: 5 additions & 0 deletions
5
src/it/projects/import-dependency-missing-sources/verify.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def root = new File(basedir, 'target/modules/javax/portlet/portlet-api/1.0') | ||
return new File(root, 'javax.portlet.portlet-api-1.0.jar').exists() && | ||
new File(root, 'javax.portlet.portlet-api-1.0.jar.sha1').exists() && | ||
!new File(root, 'javax.portlet.portlet-api-1.0-sources.jar').exists() && | ||
!new File(root, 'javax.portlet.portlet-api-1.0-sources.jar.sha1').exists() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.ceylon-lang.test</groupId> | ||
<artifactId>compile-default</artifactId> | ||
<version>1.2.1-SNAPSHOT</version> | ||
|
||
<name>compile-default</name> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.ceylon-lang</groupId> | ||
<artifactId>ceylon-maven-plugin</artifactId> | ||
<version>1.2.1-SNAPSHOT</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>import-dependency</goal> | ||
</goals> | ||
<configuration> | ||
<moduleImports> | ||
<moduleImport> | ||
<dependency> | ||
<groupId>javax.inject</groupId> | ||
<artifactId>javax.inject</artifactId> | ||
<version>1</version> | ||
</dependency> | ||
<sources>false</sources> | ||
</moduleImport> | ||
</moduleImports> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def root = new File(basedir, 'target/modules/javax/inject/javax/inject/1') | ||
return new File(root, 'javax.inject.javax.inject-1.jar').exists() && | ||
new File(root, 'javax.inject.javax.inject-1.jar.sha1').exists() && | ||
!new File(root, 'javax.inject.javax.inject-1-sources.jar').exists() && | ||
!new File(root, 'javax.inject.javax.inject-1-sources.jar.sha1').exists() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
def log = new File(basedir, 'build.log').text | ||
return log.contains('Missing module: mymodule/1.0.0') | ||
return log.contains('Could not find module: mymodule/1.0.0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters