소스 검색

fix : 升级jdk17

lingfeng 4 일 전
부모
커밋
ae17e00e76

+ 0 - 5
game-platform/game-platform-base/pom.xml

@@ -11,9 +11,4 @@
 
     <artifactId>game-platform-base</artifactId>
 
-    <properties>
-        <maven.compiler.source>8</maven.compiler.source>
-        <maven.compiler.target>8</maven.compiler.target>
-    </properties>
-
 </project>

+ 13 - 13
game-platform/game-platform-serve/pom.xml

@@ -11,11 +11,6 @@
 
     <artifactId>game-platform-serve</artifactId>
 
-    <properties>
-        <maven.compiler.source>8</maven.compiler.source>
-        <maven.compiler.target>8</maven.compiler.target>
-    </properties>
-
     <dependencies>
         <dependency>
             <groupId>org.springframework.boot</groupId>
@@ -86,12 +81,12 @@
         <!-- Mybatis Plus -->
         <dependency>
             <groupId>com.baomidou</groupId>
-            <artifactId>mybatis-plus-boot-starter</artifactId>
+            <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
         </dependency>
         <!-- Mysql Connector -->
         <dependency>
-            <groupId>mysql</groupId>
-            <artifactId>mysql-connector-java</artifactId>
+            <groupId>com.mysql</groupId>
+            <artifactId>mysql-connector-j</artifactId>
         </dependency>
         <!-- swagger2 -->
         <dependency>
@@ -107,7 +102,7 @@
 
     </dependencies>
 
-    <build>
+     <build>
         <plugins>
             <!-- 不发布到 maven仓库 -->
             <plugin>
@@ -121,17 +116,22 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <version>3.1</version>
+                <version>3.11.0</version>
                 <configuration>
-                    <source>8</source>
-                    <target>8</target>
+                    <source>${java.version}</source>
+                    <target>${java.version}</target>
                     <encoding>${project.build.sourceEncoding}</encoding>
+                    <fork>true</fork> <!-- 必须设为 true,否则 compilerArgs 不生效 -->
+                    <compilerArgs>
+                        <!-- 将编译器的栈大小调整为 4M 或 8M (默认通常只有 1M) -->
+                        <arg>-J-Xss4m</arg>
+                    </compilerArgs>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
-                <version>2.5.14</version>
+                <version>${springboot.version}</version>
                 <configuration>
                     <includeSystemScope>true</includeSystemScope>
                 </configuration>

+ 1 - 2
game-platform/game-platform-serve/src/main/java/com/zanxiang/game/platform/serve/pojo/dto/PlatformDeYangUserDTO.java

@@ -1,9 +1,8 @@
 package com.zanxiang.game.platform.serve.pojo.dto;
 
+import jakarta.validation.constraints.NotNull;
 import lombok.Data;
 
-import javax.validation.constraints.NotNull;
-
 /**
  * @author : lingfeng
  * @time : 2023-05-22

+ 0 - 5
game-platform/pom.xml

@@ -16,9 +16,4 @@
         <module>game-platform-serve</module>
     </modules>
 
-    <properties>
-        <maven.compiler.source>8</maven.compiler.source>
-        <maven.compiler.target>8</maven.compiler.target>
-    </properties>
-
 </project>

+ 1 - 1
pom.xml

@@ -14,7 +14,7 @@
     <parent>
         <groupId>com.zanxiang</groupId>
         <artifactId>microservices-parent</artifactId>
-        <version>0.0.6-SNAPSHOT</version>
+        <version>2.0.1-SNAPSHOT</version>
         <relativePath/>
     </parent>