brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [1/4] incubator-brooklyn git commit: Use the eclipse-groovy compiler for .groovy files only.
Date Tue, 03 Mar 2015 16:19:50 GMT
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 <svetoslav.neykov@cloudsoftcorp.com>
Authored: Thu Feb 19 14:23:19 2015 +0200
Committer: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
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>


Mime
View raw message