File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ jobs:
1818 uses : actions/checkout@v4
1919
2020 # 设置 JDK(如果是 Java 项目)
21- - name : Set up JDK 8 .*
21+ - name : Set up JDK 17 .*
2222 uses : actions/setup-java@v4
2323 with :
24- java-version : ' 8 .*'
24+ java-version : ' 17 .*'
2525 distribution : ' temurin'
2626
2727 # 安装依赖并运行 Checkstyle(如果是 Maven 项目)
Original file line number Diff line number Diff line change 1919 </modules >
2020
2121 <properties >
22- <java .version>1.8 </java .version>
22+ <java .version>17 </java .version>
2323 <fastjson .version>2.0.50</fastjson .version>
2424 <hutool .version>5.8.27</hutool .version>
2525 <org .mapstruct.version>1.5.5.Final</org .mapstruct.version>
159159 <artifactId >maven-compiler-plugin</artifactId >
160160 <version >3.8.1</version > <!-- 选择合适的版本 -->
161161 <configuration >
162- <source >1.8 </source > <!-- 编译源码的 Java 版本 -->
163- <target >1.8 </target > <!-- 生成字节码的 Java 版本 -->
162+ <source >17 </source > <!-- 编译源码的 Java 版本 -->
163+ <target >17 </target > <!-- 生成字节码的 Java 版本 -->
164164 </configuration >
165165 </plugin >
166166
You can’t perform that action at this time.
0 commit comments