-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from groovy/183/submodule_classpath_issues
Fix multi-module classpath issues (closes #183)
- Loading branch information
Showing
40 changed files
with
962 additions
and
913 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?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> | ||
|
||
<parent> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin-it-multimodulePluginAndProjectClasspath</artifactId> | ||
<version>testing</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>gmavenplus-plugin-it-multimodulePluginAndProjectClasspath-a</artifactId> | ||
<version>testing</version> | ||
<name>GMavenPlus Plugin Multi-Module Plugin and Project Classpath Test A Module</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>test</phase> | ||
<goals> | ||
<goal>execute</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<scripts> | ||
<script><![CDATA[ | ||
assert Class.forName('org.junit.Test') != null | ||
try { | ||
Class.forName('org.junit.jupiter.api.Test') | ||
assert null != null // should throw exception and never reach | ||
} catch (ClassNotFoundException e) { | ||
// do nothing, this is expected | ||
} | ||
]]></script> | ||
</scripts> | ||
</configuration> | ||
</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,55 @@ | ||
<?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> | ||
|
||
<parent> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin-it-multimodulePluginAndProjectClasspath</artifactId> | ||
<version>testing</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>gmavenplus-plugin-it-multimodulePluginAndProjectClasspath-b</artifactId> | ||
<version>testing</version> | ||
<name>GMavenPlus Plugin Multi-Module Plugin and Project Classpath Test B Module</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>test</phase> | ||
<goals> | ||
<goal>execute</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<scripts> | ||
<script><![CDATA[ | ||
assert Class.forName('org.junit.jupiter.api.Test') != null | ||
try { | ||
Class.forName('org.junit.Test') | ||
assert null != null // should throw exception and never reach | ||
} catch (ClassNotFoundException e) { | ||
// do nothing, this is expected | ||
} | ||
]]></script> | ||
</scripts> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
2 changes: 2 additions & 0 deletions
2
src/it/multimodulePluginAndProjectClasspath/invoker.properties
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,2 @@ | ||
invoker.goals=clean test | ||
#invoker.debug = true |
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,87 @@ | ||
<?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> | ||
|
||
<parent> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin-it-root</artifactId> | ||
<version>testing</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>gmavenplus-plugin-it-multimodulePluginAndProjectClasspath</artifactId> | ||
<version>testing</version> | ||
<name>GMavenPlus Plugin Multi-Module Plugin and Project Classpath Test</name> | ||
<packaging>pom</packaging> | ||
|
||
<profiles> | ||
<profile> | ||
<id>indy</id> | ||
<dependencies> | ||
<dependency> | ||
<groupId>@groovyGroupId@</groupId> | ||
<artifactId>groovy</artifactId> | ||
<classifier>indy</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>@groovyGroupId@</groupId> | ||
<artifactId>groovy-ant</artifactId> | ||
<classifier>indy</classifier> | ||
</dependency> | ||
</dependencies> | ||
</profile> | ||
<profile> | ||
<id>nonindy</id> | ||
<dependencies> | ||
<dependency> | ||
<groupId>@groovyGroupId@</groupId> | ||
<artifactId>groovy</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>@groovyGroupId@</groupId> | ||
<artifactId>groovy-ant</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</profile> | ||
<profile> | ||
<id>pre2.3-indy</id> | ||
<dependencies> | ||
<dependency> | ||
<groupId>@groovyGroupId@</groupId> | ||
<artifactId>groovy</artifactId> | ||
<classifier>indy</classifier> | ||
</dependency> | ||
</dependencies> | ||
</profile> | ||
<profile> | ||
<id>pre2.3-nonindy</id> | ||
<dependencies> | ||
<dependency> | ||
<groupId>@groovyGroupId@</groupId> | ||
<artifactId>groovy</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</profile> | ||
</profiles> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<modules> | ||
<module>a</module> | ||
<module>b</module> | ||
</modules> | ||
|
||
</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,55 @@ | ||
<?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> | ||
|
||
<parent> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin-it-multimodulePluginAndProjectClasspath2</artifactId> | ||
<version>testing</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>gmavenplus-plugin-it-multimodulePluginAndProjectClasspath2-a</artifactId> | ||
<version>testing</version> | ||
<name>GMavenPlus Plugin Multi-Module Plugin and Project Classpath Test 2 A Module</name> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>test</phase> | ||
<goals> | ||
<goal>execute</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<scripts> | ||
<script><![CDATA[ | ||
assert Class.forName('org.junit.Test') != null | ||
try { | ||
Class.forName('org.junit.jupiter.api.Test') | ||
assert null != null // should throw exception and never reach | ||
} catch (ClassNotFoundException e) { | ||
// do nothing, this is expected | ||
} | ||
]]></script> | ||
</scripts> | ||
</configuration> | ||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>@junitVersion@</version> | ||
</dependency> | ||
</dependencies> | ||
</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,55 @@ | ||
<?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> | ||
|
||
<parent> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin-it-multimodulePluginAndProjectClasspath2</artifactId> | ||
<version>testing</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>gmavenplus-plugin-it-multimodulePluginAndProjectClasspath2-b</artifactId> | ||
<version>testing</version> | ||
<name>GMavenPlus Plugin Multi-Module Plugin and Project Classpath Test 2 B Module</name> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>test</phase> | ||
<goals> | ||
<goal>execute</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<scripts> | ||
<script><![CDATA[ | ||
assert Class.forName('org.junit.jupiter.api.Test') != null | ||
try { | ||
Class.forName('org.junit.Test') | ||
assert null != null // should throw exception and never reach | ||
} catch (ClassNotFoundException e) { | ||
// do nothing, this is expected | ||
} | ||
]]></script> | ||
</scripts> | ||
</configuration> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
<version>${junit5Version}</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
2 changes: 2 additions & 0 deletions
2
src/it/multimodulePluginAndProjectClasspath2/invoker.properties
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,2 @@ | ||
invoker.goals=clean test | ||
#invoker.debug = true |
Oops, something went wrong.