Skip to content

Commit b1f3940

Browse files
refs #105: Update to Java 21
1 parent 9998866 commit b1f3940

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.github/workflows/service-discovery-ci.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ jobs:
2929
build-and-test:
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v3
33-
- name: Set up JDK 17
32+
- name: Checkout code
33+
uses: actions/checkout@v3
34+
35+
- name: Set up JDK 21
3436
uses: actions/setup-java@v3
3537
with:
36-
java-version: '17'
37-
distribution: 'zulu'
38+
java-version: '21'
39+
distribution: 'temurin'
40+
3841
- name: Build + unit tests
3942
run: ./gradlew --no-daemon :sd-app:build
4043

.github/workflows/sonarcloud-analyses.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
- uses: actions/checkout@v2
2121
with:
2222
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
23-
- name: Set up JDK 17
23+
- name: Set up JDK 21
2424
uses: actions/setup-java@v3
2525
with:
26-
java-version: '17'
27-
distribution: 'zulu'
26+
java-version: '21'
27+
distribution: 'temurin'
2828
- name: Cache SonarCloud packages
2929
uses: actions/cache@v1
3030
with:

sd-app/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM amazoncorretto:17-alpine
1+
FROM eclipse-temurin:21-jre-alpine
22

33
LABEL MAINTAINER="Mauricio Generoso"
44

sd-app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ plugins {
1212
}
1313

1414
jacoco {
15-
toolVersion = "0.8.8"
15+
toolVersion = "0.8.12"
1616
}
1717

1818
java {
19-
sourceCompatibility = JavaVersion.VERSION_17
20-
targetCompatibility = JavaVersion.VERSION_17
19+
sourceCompatibility = JavaVersion.VERSION_21
20+
targetCompatibility = JavaVersion.VERSION_21
2121
}
2222

2323
scmVersion {

0 commit comments

Comments
 (0)