Repository: jclouds Updated Branches: refs/heads/master 8ec3c520c -> 624367dfb
Define the JDK version in a Maven property Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/6f7e4b92 Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/6f7e4b92 Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/6f7e4b92 Branch: refs/heads/master Commit: 6f7e4b92b0761cf34ca2233d080f70c719103a29 Parents: 8ec3c52 Author: Ignasi Barrera <[email protected]> Authored: Wed Oct 25 08:39:30 2017 +0200 Committer: Ignasi Barrera <[email protected]> Committed: Thu Nov 30 09:04:46 2017 +0100 ---------------------------------------------------------------------- project/pom.xml | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/6f7e4b92/project/pom.xml ---------------------------------------------------------------------- diff --git a/project/pom.xml b/project/pom.xml index aa8a506..0fe78c4 100644 --- a/project/pom.xml +++ b/project/pom.xml @@ -219,6 +219,7 @@ <properties> <maven.compile.source>1.6</maven.compile.source> <maven.compile.target>1.6</maven.compile.target> + <jdk.version>1.7</jdk.version> <maven.compile.deprecation>true</maven.compile.deprecation> <maven.site.url.base>gitsite:[email protected]/jclouds/jclouds-maven-site.git</maven.site.url.base> <guava.version>18.0</guava.version> @@ -1379,7 +1380,7 @@ <id>jenkins</id> <build> <plugins> - <!-- make sure jclouds is built with the right JDK --> + <!-- Make sure jclouds is built with the right JDK --> <plugin> <artifactId>maven-toolchains-plugin</artifactId> <version>1.1</version> @@ -1393,35 +1394,7 @@ <configuration> <toolchains> <jdk> - <version>1.7</version> - <vendor>oracle</vendor> - </jdk> - </toolchains> - </configuration> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>jenkins-jdk8</id> - <build> - <plugins> - <!-- make sure jclouds is built with the right JDK --> - <plugin> - <artifactId>maven-toolchains-plugin</artifactId> - <version>1.1</version> - <executions> - <execution> - <goals> - <goal>toolchain</goal> - </goals> - </execution> - </executions> - <configuration> - <toolchains> - <jdk> - <version>1.8</version> - <vendor>openjdk</vendor> + <version>${jdk.version}</version> </jdk> </toolchains> </configuration>
