Skip to content

Commit aef3612

Browse files
committed
build!: compile for Java 17
1 parent 3f85085 commit aef3612

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Set up JDK 11
14+
- name: Set up JDK 17
1515
uses: actions/setup-java@v4
1616
with:
1717
distribution: 'adopt'
18-
java-version: '11'
18+
java-version: '17'
1919
- name: Set RELEASE_VERSION from tag
2020
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2121
- name: Print version
@@ -25,7 +25,7 @@ jobs:
2525
run: mvn -B package --file pom.xml
2626
- name: Upload artifact
2727
uses: actions/upload-artifact@v4
28-
with:
28+
with:
2929
name: target
3030
path: ${{ github.workspace }}/target/**/*
3131
- name: Extract changelog content

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
uses: actions/setup-java@v4
1818
with:
1919
distribution: 'adopt'
20-
java-version: '11'
20+
java-version: '17'
2121
- name: Build with Maven
2222
run: mvn -B package --file pom.xml
2323
- name: Upload artifact
2424
uses: actions/upload-artifact@v4
25-
with:
25+
with:
2626
name: target
2727
path: ${{ github.workspace }}/target/**/*

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<artifactId>maven-compiler-plugin</artifactId>
102102
<version>${maven-compiler-plugin.version}</version>
103103
<configuration>
104-
<release>11</release>
104+
<release>17</release>
105105
</configuration>
106106
</plugin>
107107
<plugin>

0 commit comments

Comments
 (0)