소스 검색

jdk版本调整为11

xiwa 3 년 전
부모
커밋
68535fbc65

+ 1 - 2
common/src/main/java/cc/iotkit/common/utils/CodecUtil.java

@@ -2,7 +2,6 @@ package cc.iotkit.common.utils;
 
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.lang3.StringUtils;
-import sun.misc.BASE64Decoder;
 
 import javax.crypto.Cipher;
 import javax.crypto.KeyGenerator;
@@ -30,7 +29,7 @@ public class CodecUtil {
      * @throws Exception 抛出异常
      */
     private static byte[] base64Decode(String base64Code) throws Exception {
-        return StringUtils.isEmpty(base64Code) ? null : new BASE64Decoder().decodeBuffer(base64Code);
+        return StringUtils.isEmpty(base64Code) ? null : new Base64().decode(base64Code);
     }
 
 

+ 2 - 2
manager/pom.xml

@@ -172,8 +172,8 @@
                     <artifactId>maven-compiler-plugin</artifactId>
                     <version>3.0</version>
                     <configuration>
-                        <source>1.8</source>
-                        <target>1.8</target>
+                        <source>11</source>
+                        <target>11</target>
                         <encoding>UTF-8</encoding>
                     </configuration>
                 </plugin>

+ 1 - 1
pom.xml

@@ -25,7 +25,7 @@
     <name>iotkit-parent</name>
     <description>iotkit parent</description>
     <properties>
-        <java.version>1.8</java.version>
+        <java.version>11</java.version>
         <keycloak-spring.version>17.0.0</keycloak-spring.version>
         <vertx.version>4.2.2</vertx.version>
     </properties>

+ 1 - 1
protocol-gateway/http-biz-component/dependency-reduced-pom.xml

@@ -63,7 +63,7 @@
     </dependency>
   </dependencies>
   <properties>
-    <maven.compiler.source>8</maven.compiler.source>
     <maven.compiler.target>8</maven.compiler.target>
+    <maven.compiler.source>8</maven.compiler.source>
   </properties>
 </project>

+ 2 - 2
standalone-package/pom.xml

@@ -18,8 +18,8 @@
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
+                    <source>11</source>
+                    <target>11</target>
                     <encoding>UTF-8</encoding>
                 </configuration>
             </plugin>