]> source.dussan.org Git - jgit.git/commitdiff
Allow full compiles on Java 8. 67/24067/1
authorAlexander Kurtakov <akurtako@redhat.com>
Fri, 28 Mar 2014 13:43:10 +0000 (15:43 +0200)
committerAlexander Kurtakov <akurtako@redhat.com>
Fri, 28 Mar 2014 13:43:10 +0000 (15:43 +0200)
Make jgit.java6 and jgit.java7 activation based on ranges so modules in
jgit.java6 are enabled for Java 1.6+ and modules in jgit.java7 are
enabled for Java 1.7+. This enables full compiles on Java 8 and also
removes the need to list org.eclipse.jgit.console in both profiles.

Change-Id: Iabfcff18737ff435ba8d5e8efc7a581abc9a46ce
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index ecf24001d40343e7c0a1d48c07ae754a2cb4967d..d4acb3e333b81ba14f62fa056d2203513a5cb4ec 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <profile>
       <id>jgit.java6</id>
       <activation>
-        <jdk>1.6</jdk>
+        <jdk>[1.6,)</jdk>
       </activation>
       <modules>
         <module>org.eclipse.jgit.console</module>
     <profile>
       <id>jgit.java7</id>
       <activation>
-        <jdk>1.7</jdk>
+        <jdk>[1.7,)</jdk>
       </activation>
       <modules>
-        <module>org.eclipse.jgit.console</module>
         <module>org.eclipse.jgit.java7</module>
         <module>org.eclipse.jgit.java7.test</module>
       </modules>