Skip to content

Commit

Permalink
Merge pull request #11 from oleg-nenashev/pom-update
Browse files Browse the repository at this point in the history
[JENKINS-37565] Allow specifying custom java.level
  • Loading branch information
oleg-nenashev committed Aug 28, 2016
2 parents 9a115ce + 1ea975d commit 8334bed
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pom.xml
Expand Up @@ -583,14 +583,16 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.${java.level}</source>
<target>1.${java.level}</target>
<testSource>1.${java.level.test}</testSource>
<testTarget>1.${java.level.test}</testTarget>
</configuration>
</plugin>
<plugin>
<artifactId>maven-idea-plugin</artifactId>
<configuration>
<jdkName>JDK1.6</jdkName>
<jdkName>JDK1.${java.level}</jdkName>
</configuration>
</plugin>
<plugin>
Expand All @@ -612,6 +614,12 @@
<!-- By default only check remote repositories once per week -->
<maven.repository.update.freqency>interval:10080</maven.repository.update.freqency>

<!-- Starting from Jenkins 1.625.x Jenkins supports Java 7 only, hence we may want to bump the dependency in components -->
<java.level>6</java.level>
<!-- Change this property if you need your tests to be compiled with a different Java level than the plugin. -->
<!-- Use only if strictly necessary. It may cause problems in your IDE. -->
<java.level.test>${java.level}</java.level.test>

<!-- Define all plugin versions as properties so individual hierarchies can easily override -->
<apt-maven-plugin.version>1.0-alpha-4</apt-maven-plugin.version>
<axistools-maven-plugin.version>1.4</axistools-maven-plugin.version>
Expand Down

0 comments on commit 8334bed

Please sign in to comment.