Repository: jclouds Updated Branches: refs/heads/2.0.x cfdbc810b -> 79aa09dd1
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/79aa09dd Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/79aa09dd Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/79aa09dd Branch: refs/heads/2.0.x Commit: 79aa09dd1486eae233d83c05a8b4cf84811d206a Parents: cfdbc81 Author: Ignasi Barrera <[email protected]> Authored: Mon Oct 16 08:52:32 2017 +0200 Committer: Ignasi Barrera <[email protected]> Committed: Mon Oct 23 12:00:08 2017 +0200 ---------------------------------------------------------------------- project/pom.xml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/79aa09dd/project/pom.xml ---------------------------------------------------------------------- diff --git a/project/pom.xml b/project/pom.xml index 1526f73..bd12356 100644 --- a/project/pom.xml +++ b/project/pom.xml @@ -1421,5 +1421,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>
