build: 适配 Java 21(编译目标 21,版本常量与文档同步)
This commit is contained in:
1 parent
644933e2cc
commit
781e77ada0
3 files changed
+6
-6
No files matched your search
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
## 技术栈
|
## 技术栈
|
||||||
|
|
||||||
- **Java 25**
|
- **Java 21**
|
||||||
- **Maven** 构建
|
- **Maven** 构建
|
||||||
- **Apache Commons Compress 1.28.0**(压缩功能依赖)
|
- **Apache Commons Compress 1.28.0**(压缩功能依赖)
|
||||||
- **JUnit Jupiter 5.13.0**(测试框架)
|
- **JUnit Jupiter 5.13.0**(测试框架)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
</licenses>
|
</licenses>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.release>25</maven.compiler.release>
|
<maven.compiler.release>21</maven.compiler.release>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<junit.version>5.13.0</junit.version>
|
<junit.version>5.13.0</junit.version>
|
||||||
<surefire.version>3.6.0</surefire.version>
|
<surefire.version>3.6.0</surefire.version>
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ public class version {
|
|||||||
// 项目的版本信息,不代表实时运行环境
|
// 项目的版本信息,不代表实时运行环境
|
||||||
// 与 pom.xml 保持一致;构建 JAR 时优先读取 MANIFEST 的 Implementation-Version
|
// 与 pom.xml 保持一致;构建 JAR 时优先读取 MANIFEST 的 Implementation-Version
|
||||||
public static final String VERSION = "1.7";
|
public static final String VERSION = "1.7";
|
||||||
public static final String JAVA_VERSION = "25";
|
public static final String JAVA_VERSION = "21";
|
||||||
public static final String OpenJDK_VERSION = "25.0.0.0.1";
|
public static final String OpenJDK_VERSION = "21";
|
||||||
public static final String OpenJDK_Runtime_Environment = "25.0.0.0.1+36-GA";
|
public static final String OpenJDK_Runtime_Environment = "21+35-2513";
|
||||||
public static final String OpenJDK_64Bit_Server_VM = "25.0.0.0.1+36-GA";
|
public static final String OpenJDK_64Bit_Server_VM = "21+35-2513";
|
||||||
|
|
||||||
public String GetVersion() {
|
public String GetVersion() {
|
||||||
// 打包为 JAR 时读取 MANIFEST 中的 Implementation-Version,类路径运行(如测试)时回退到常量
|
// 打包为 JAR 时读取 MANIFEST 中的 Implementation-Version,类路径运行(如测试)时回退到常量
|
||||||
|
|||||||
Reference in new issue
Block a user