Skip to content

Commit

Permalink
Using JDK 17 (#955)
Browse files Browse the repository at this point in the history
* Moved to Maven compiler 17
Moved to use JDK 17 and removed JDK 11 from pipelines

Signed-off-by: Paolo Patierno <[email protected]>

* Updated CHANGELOG

Signed-off-by: Paolo Patierno <[email protected]>

---------

Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno authored Dec 20, 2024
1 parent 347f550 commit 47435a8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .azure/templates/jobs/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ jobs:
displayName: 'Build Docs'
strategy:
matrix:
'java-11':
'java-17':
image: 'Ubuntu-22.04'
jdk_version: '11'
jdk_version: '17'
# Strategy for the job
# Set timeout for jobs
timeoutInMinutes: 60
Expand Down
6 changes: 1 addition & 5 deletions .azure/templates/jobs/build_java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ jobs:
# Strategy for the job
strategy:
matrix:
'java-11':
image: 'Ubuntu-22.04'
jdk_version: '11'
main_build: 'true'
'java-17':
image: 'Ubuntu-22.04'
jdk_version: '17'
main_build: 'false'
main_build: 'true'
# Set timeout for jobs
timeoutInMinutes: 60
# Base system
Expand Down
2 changes: 1 addition & 1 deletion .azure/templates/steps/prerequisites/install_java.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Step to configure JAVA on the agent
parameters:
- name: JDK_VERSION
default: '11'
default: '17'
steps:
- task: JavaToolInstaller@0
inputs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# Setup OpenJDK 11
# Setup OpenJDK 17
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
cache: 'maven'

# Initializes the CodeQL tools for scanning.
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- build: ppc64le
os: linux
arch: ppc64le
jdk: openjdk11
jdk: openjdk17
script: mvn install -Dmaven.javadoc.skip=true
addons:
apt:
Expand All @@ -17,7 +17,7 @@ jobs:
- build: s390x
os: linux
arch: s390x
jdk: openjdk11
jdk: openjdk17
# because of flakiness of tests on s390x, adding automatic retries on failure
script: mvn install -Dmaven.javadoc.skip=true -Dfailsafe.rerunFailingTestsCount=10
addons:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.32.0

* Dependency updates (JMX exporter 1.1.0)
* Dropped support for Java 11 and replaced with Java 17.

## 0.31.1

Expand Down
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
<log4j.version>2.17.2</log4j.version>
<vertx.version>4.5.11</vertx.version>
<vertx-testing.version>4.5.11</vertx-testing.version>
Expand Down

0 comments on commit 47435a8

Please sign in to comment.