Przeglądaj źródła

fix: 修复JDK版本配置,统一使用Java 17编译

- 在根pom.xml的maven-compiler-plugin中显式指定source和target为Java 17
- 删除xdz-spring-boot-starter-env子模块中硬编码的Java 8配置
- 确保所有模块统一使用Java 17编译,避免不同环境下的版本不一致问题
wangmeng 3 tygodni temu
rodzic
commit
d3c95e81ec
2 zmienionych plików z 2 dodań i 5 usunięć
  1. 2 0
      pom.xml
  2. 0 5
      xdz-framework/xdz-spring-boot-starter-env/pom.xml

+ 2 - 0
pom.xml

@@ -70,6 +70,8 @@
                     <artifactId>maven-compiler-plugin</artifactId>
                     <version>${maven-compiler-plugin.version}</version>
                     <configuration>
+                        <source>${java.version}</source>
+                        <target>${java.version}</target>
                         <annotationProcessorPaths>
                             <path>
                                 <groupId>org.springframework.boot</groupId>

+ 0 - 5
xdz-framework/xdz-spring-boot-starter-env/pom.xml

@@ -18,11 +18,6 @@
     </description>
     <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
 
-    <properties>
-        <maven.compiler.source>8</maven.compiler.source>
-        <maven.compiler.target>8</maven.compiler.target>
-    </properties>
-
     <dependencies>
         <dependency>
             <groupId>com.xindazhou</groupId>