Skip to content

Commit

Permalink
use JVM --release option to build.
Browse files Browse the repository at this point in the history
This options exists since java9 and so we enforce usage of java LTS
version above (java11)
  • Loading branch information
sbernard31 committed Aug 23, 2023
1 parent eb1e7b0 commit 3adbd53
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
distribution: 'temurin'
cache: maven

Expand Down
2 changes: 1 addition & 1 deletion .jenkins/ci.jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pipeline {
agent any
tools {
maven 'apache-maven-latest'
jdk 'adoptopenjdk-hotspot-jdk8-latest'
jdk 'adoptopenjdk-hotspot-jdk11-latest'
}
options {
timeout (time: 30, unit: 'MINUTES')
Expand Down
2 changes: 1 addition & 1 deletion .jenkins/nightly.jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pipeline {
agent any
tools {
maven 'apache-maven-latest'
jdk 'adoptopenjdk-hotspot-jdk8-latest'
jdk 'adoptopenjdk-hotspot-jdk11-latest'
}
options {
timeout (time: 30, unit: 'MINUTES')
Expand Down
2 changes: 1 addition & 1 deletion .jenkins/release.jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pipeline {
}
tools {
maven 'apache-maven-latest'
jdk 'oracle-jdk8-latest'
jdk 'oracle-jdk11-latest'
}
options {
timeout (time: 30, unit: 'MINUTES')
Expand Down
3 changes: 1 addition & 2 deletions build-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ Contributors:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>8</release>
<debug>true</debug>
<showDeprecation>true</showDeprecation>
</configuration>
Expand Down
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,9 @@ Contributors:
<rules>
<requireUpperBoundDeps></requireUpperBoundDeps>
<dependencyConvergence></dependencyConvergence>
<requireJavaVersion>
<version>1.11</version>
</requireJavaVersion>
<requireMavenVersion>
<version>3.6.0</version>
</requireMavenVersion>
Expand Down

0 comments on commit 3adbd53

Please sign in to comment.