Skip to content

Commit 25664b7

Browse files
authored
support JDK 11+ (#527)
1 parent 67ecbfa commit 25664b7

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v4
1616

17-
- name: Setup Java 21 and Apache Maven
17+
- name: Setup Java 11 and Apache Maven
1818
uses: actions/setup-java@v4
1919
with:
2020
distribution: 'temurin'
21-
java-version: 21
21+
java-version: 11
2222
server-id: ossrh
2323
server-username: MAVEN_USERNAME
2424
server-password: MAVEN_CENTRAL_TOKEN

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
fetch-depth: 5
1515
persist-credentials: false
1616

17-
- name: Setup Java 21 and Apache Maven
17+
- name: Setup Java 11 and Apache Maven
1818
uses: actions/setup-java@v4
1919
with:
2020
distribution: 'temurin'
21-
java-version: 21
21+
java-version: 11
2222
server-id: ossrh
2323
server-username: MAVEN_USERNAME
2424
server-password: MAVEN_CENTRAL_TOKEN
@@ -45,7 +45,7 @@ jobs:
4545
needs: [ release ]
4646
steps:
4747
- name: Checkout
48-
uses: actions/checkout@v2
48+
uses: actions/checkout@v4
4949
with:
5050
fetch-depth: 5
5151
persist-credentials: false

pom.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
<properties>
4444
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45-
<maven.compiler.resource>21</maven.compiler.resource>
45+
<maven.compiler.release>11</maven.compiler.release>
4646
<source.plugin.version>3.3.0</source.plugin.version>
4747
<javadoc.plugin.version>3.5.0</javadoc.plugin.version>
4848
<gpg.plugin.version>3.1.0</gpg.plugin.version>
@@ -112,10 +112,6 @@
112112
<groupId>org.apache.maven.plugins</groupId>
113113
<artifactId>maven-compiler-plugin</artifactId>
114114
<version>3.13.0</version>
115-
<configuration>
116-
<source>21</source>
117-
<target>21</target>
118-
</configuration>
119115
</plugin>
120116
<plugin>
121117
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)