reset(build): 添加release参数支持JDK新特性编译,避免非Java25

- 在maven-compiler-plugin配置中新增release参数
- 移除过时的annotationProcessorPaths配置
- 保持与source参数一致的JDK版本兼容性
This commit is contained in:
PIGCLOUD committed 2025-10-28 16:45:00 +08:00
1 parent 92d9b403c0
commit dc3ad69a38
1 file changed
+1 -7
+1 -7
View File
@@ -240,15 +240,9 @@
<configuration>
<target>${maven.compiler.target}</target>
<source>${maven.compiler.source}</source>
<release>${maven.compiler.source}</release>
<encoding>UTF-8</encoding>
<parameters>true</parameters>
<!-- 支持 JDK 25 编译 -->
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<!--打包关联最新 git commit 信息插件-->