Repository: jclouds Updated Branches: refs/heads/master b93270aef -> 530dbd3de
Add Jenkins profile to use Maven toolchains Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/530dbd3d Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/530dbd3d Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/530dbd3d Branch: refs/heads/master Commit: 530dbd3de807123e4509f798f0b512ccf1c3bd46 Parents: b93270a Author: Ignasi Barrera <[email protected]> Authored: Mon Oct 16 08:52:32 2017 +0200 Committer: Ignasi Barrera <[email protected]> Committed: Mon Oct 23 11:37:32 2017 +0200 ---------------------------------------------------------------------- project/pom.xml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/530dbd3d/project/pom.xml ---------------------------------------------------------------------- diff --git a/project/pom.xml b/project/pom.xml index 1b37dac..aa8a506 100644 --- a/project/pom.xml +++ b/project/pom.xml @@ -1375,5 +1375,59 @@ </plugins> </build> </profile> + <profile> + <id>jenkins</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.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> + </jdk> + </toolchains> + </configuration> + </plugin> + </plugins> + </build> + </profile> </profiles> </project>
