Repository: incubator-brooklyn Updated Branches: refs/heads/master 34ce96ee7 -> 1f3bff401
Use the eclipse-groovy compiler for .groovy files only. Compile non-groovy tests with the same compiler used for the non-test code so tests can excersize the same code path as used by client code. Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/96a5ab12 Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/96a5ab12 Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/96a5ab12 Branch: refs/heads/master Commit: 96a5ab1216f53de9b3e5a3f30972a3faf5482629 Parents: 1597906 Author: Svetoslav Neykov <[email protected]> Authored: Thu Feb 19 14:23:19 2015 +0200 Committer: Svetoslav Neykov <[email protected]> Committed: Fri Feb 20 21:12:16 2015 +0200 ---------------------------------------------------------------------- core/pom.xml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/96a5ab12/core/pom.xml ---------------------------------------------------------------------- diff --git a/core/pom.xml b/core/pom.xml index 3a9925b..27ba663 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -234,10 +234,25 @@ <artifactId>maven-compiler-plugin</artifactId> <inherited>true</inherited> <executions> + <!-- + Compile only Groovy files with the eclipse-groovy compiler. + Java files compiled by default-testCompile execution inherited from parent. + --> <execution> - <id>default-testCompile</id> + <id>groovy-testCompile</id> + <phase>test-compile</phase> + <goals> + <goal>testCompile</goal> + </goals> <configuration> <compilerId>groovy-eclipse-compiler</compilerId> + <includes> + <include>**/*.groovy</include> + </includes> + <fork>true</fork> + <verbose>false</verbose> + <source>${java.version}</source> + <target>${java.version}</target> </configuration> </execution> </executions>
