Skip to content

Commit 46adfe1

Browse files
author
Marvin Zhang
committed
chore: Downgrade Java version in pom.xml and GitHub Actions workflow to 17
- Updated the Maven compiler source and target versions in pom.xml from 21 to 17 to align with project requirements. - Changed the Java version in the GitHub Actions workflow from 21 to 17 for consistency across build and deployment processes. - These modifications ensure compatibility with the current project setup and maintain a stable development environment.
1 parent 3c3eb3b commit 46adfe1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Java for publishing to GitHub Packages
2121
uses: actions/setup-java@v4
2222
with:
23-
java-version: '21'
23+
java-version: '17'
2424
distribution: 'temurin'
2525
- name: Get version
2626
id: get_version
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set up Java for publishing to Maven Central
4646
uses: actions/setup-java@v4
4747
with:
48-
java-version: '21'
48+
java-version: '17'
4949
distribution: 'temurin'
5050
server-id: central
5151
server-username: MAVEN_USERNAME

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
</scm>
3232

3333
<properties>
34-
<maven.compiler.source>21</maven.compiler.source>
35-
<maven.compiler.target>21</maven.compiler.target>
34+
<maven.compiler.source>17</maven.compiler.source>
35+
<maven.compiler.target>17</maven.compiler.target>
3636
<project.version>0.7.0</project.version>
3737
</properties>
3838

0 commit comments

Comments
 (0)