fix: downgrade JDK version from 25 to 21 in Dockerfile and related configurations

This commit is contained in:
pnoker
2026-04-29 16:26:24 +08:00
parent 1a52a12b23
commit b0176bd9a1
4 changed files with 12 additions and 11 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
"Bash(find:*)",
"Bash(java *)",
"Bash(mvn *)",
"WebSearch"
"WebSearch",
"mcp__context7__query-docs"
]
}
}
+4 -4
View File
@@ -26,11 +26,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 25
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: liberica
java-version: 25
java-version: 21
cache: maven
cache-dependency-path: "**/pom.xml"
@@ -114,11 +114,11 @@ jobs:
with:
fetch-depth: 0
- name: Set up JDK 25
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: liberica
java-version: 25
java-version: 21
cache: maven
cache-dependency-path: "**/pom.xml"
+2 -2
View File
@@ -15,8 +15,8 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Use JDK 2025.9 base image
FROM pnoker/dc3-jdk:25
# Use JDK 21 base image
FROM pnoker/dc3-jdk:21
LABEL dc3.author=pnoker
LABEL dc3.author.email=pnokers.icloud.com
+4 -4
View File
@@ -70,7 +70,7 @@
<maven.deploy.skip>true</maven.deploy.skip>
<!-- JDK Version -->
<java.version>25</java.version>
<java.version>21</java.version>
<!-- DC3 Version -->
<dc3.version>2026.4.29</dc3.version>
@@ -236,11 +236,11 @@
<configuration>
<rules>
<requireJavaVersion>
<version>[25,26)</version>
<version>[21,)</version>
<message>
This project requires JDK 25 to build.
This project targets Java 21 bytecode (via --release 21).
JDK 21 or newer is required to build.
Current JDK: ${java.version}
Please install JDK 25 and set JAVA_HOME accordingly.
</message>
</requireJavaVersion>
</rules>