File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ jobs:
2020 - uses : actions/checkout@v5
2121 with :
2222 fetch-depth : 0
23- - name : Set up JDK 17
23+ - name : Set up JDK 25
2424 uses : actions/setup-java@v5
2525 with :
2626 distribution : ' corretto'
27- java-version : ' 17 '
27+ java-version : ' 25 '
2828 cache : ' gradle'
2929 - name : Cache SonarCloud packages
3030 uses : actions/cache@v5
@@ -47,11 +47,11 @@ jobs:
4747 - uses : actions/checkout@v5
4848 with :
4949 fetch-depth : 0
50- - name : Set up JDK 17
50+ - name : Set up JDK 25
5151 uses : actions/setup-java@v5
5252 with :
5353 distribution : ' corretto'
54- java-version : ' 17 '
54+ java-version : ' 25 '
5555 cache : ' gradle'
5656 - name : Build with Gradle
5757 run : ./gradlew test --no-daemon
@@ -65,11 +65,11 @@ jobs:
6565 - uses : actions/checkout@v5
6666 with :
6767 fetch-depth : 0
68- - name : Set up JDK 17
68+ - name : Set up JDK 25
6969 uses : actions/setup-java@v5
7070 with :
7171 distribution : ' corretto'
72- java-version : ' 17 '
72+ java-version : ' 25 '
7373 cache : ' gradle'
7474 - name : Build with Gradle
7575 run : chmod +x gradlew && ./gradlew test --no-daemon
@@ -81,11 +81,11 @@ jobs:
8181 - uses : actions/checkout@v5
8282 with :
8383 fetch-depth : 0
84- - name : Set up JDK 17
84+ - name : Set up JDK 25
8585 uses : actions/setup-java@v5
8686 with :
8787 distribution : ' corretto'
88- java-version : ' 17 '
88+ java-version : ' 25 '
8989 cache : ' maven'
9090 - name : Build and analyze
9191 run : mvn -B compile
Original file line number Diff line number Diff line change 11plugins {
22 id ' java'
33 id ' maven-publish'
4- id ' com.diffplug.spotless' version ' 7.0.4 '
4+ id ' com.diffplug.spotless' version ' 7.2.1 '
55 id ' org.sonarqube' version ' 6.2.0.5505'
66 id ' jacoco'
77}
@@ -12,10 +12,10 @@ repositories {
1212}
1313
1414dependencies {
15- testImplementation ' org.junit.jupiter:junit-jupiter:[5.13.3 ,)'
15+ testImplementation ' org.junit.jupiter:junit-jupiter:[5.14.4 ,)'
1616 testImplementation ' org.hamcrest:hamcrest-core:[3.0,)'
1717 testImplementation ' org.zapodot:embedded-db-junit-jupiter:[2.2.3,)'
18- testRuntimeOnly ' org.junit.platform:junit-platform-launcher:[1.13.3 ,)'
18+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:[1.14.4 ,)'
1919}
2020
2121test {
2626group = ' com.github.javadev'
2727version = ' 1.49-SNAPSHOT'
2828description = ' leetcode-in-java'
29- java. sourceCompatibility = JavaVersion . VERSION_17
29+ java. sourceCompatibility = JavaVersion . VERSION_25
3030
3131java {
3232 withSourcesJar()
@@ -46,7 +46,7 @@ spotless {
4646 }
4747 importOrder ' \\ #' , ' ' , ' *'
4848 removeUnusedImports()
49- googleJavaFormat(' 1.22 .0' ). aosp()
49+ googleJavaFormat(' 1.30 .0' ). aosp()
5050 toggleOffOn()
5151 endWithNewline()
5252 }
Original file line number Diff line number Diff line change 4444 <artifactId >maven-compiler-plugin</artifactId >
4545 <version >3.14.0</version >
4646 <configuration >
47- <source >17 </source >
48- <target >17 </target >
47+ <source >25 </source >
48+ <target >25 </target >
4949 <encoding >UTF-8</encoding >
5050 <compilerArgs >
5151 <arg >-Xlint:unchecked</arg >
6161 <dependency >
6262 <groupId >org.junit.jupiter</groupId >
6363 <artifactId >junit-jupiter-engine</artifactId >
64- <version >[5.13.3 ,)</version >
64+ <version >[5.14.4 ,)</version >
6565 </dependency >
6666 </dependencies >
6767 </plugin >
179179 <dependency >
180180 <groupId >org.junit.jupiter</groupId >
181181 <artifactId >junit-jupiter-api</artifactId >
182- <version >[5.13.3 ,)</version >
182+ <version >[5.14.4 ,)</version >
183183 <scope >test</scope >
184184 </dependency >
185185 <dependency >
186186 <groupId >org.junit.jupiter</groupId >
187187 <artifactId >junit-jupiter-engine</artifactId >
188- <version >[5.13.3 ,)</version >
188+ <version >[5.14.4 ,)</version >
189189 <scope >test</scope >
190190 </dependency >
191191 <dependency >
Original file line number Diff line number Diff line change 4242 <plugin >
4343 <groupId >org.apache.maven.plugins</groupId >
4444 <artifactId >maven-compiler-plugin</artifactId >
45- <version >3.14 .0</version >
45+ <version >3.15 .0</version >
4646 <configuration >
4747 <source >21</source >
4848 <target >21</target >
185185 <dependency >
186186 <groupId >org.junit.jupiter</groupId >
187187 <artifactId >junit-jupiter-api</artifactId >
188- <version >[5.13.3 ,)</version >
188+ <version >[5.14.4 ,)</version >
189189 <scope >test</scope >
190190 </dependency >
191191 <dependency >
192192 <groupId >org.junit.jupiter</groupId >
193193 <artifactId >junit-jupiter-engine</artifactId >
194- <version >[5.13.3 ,)</version >
194+ <version >[5.14.4 ,)</version >
195195 <scope >test</scope >
196196 </dependency >
197197 <dependency >
Original file line number Diff line number Diff line change 4343 <artifactId >maven-compiler-plugin</artifactId >
4444 <version >3.15.0</version >
4545 <configuration >
46- <source >17 </source >
47- <target >17 </target >
46+ <source >25 </source >
47+ <target >25 </target >
4848 <encoding >UTF-8</encoding >
4949 <compilerArgs >
5050 <arg >-Xlint:unchecked</arg >
6060 <dependency >
6161 <groupId >org.junit.jupiter</groupId >
6262 <artifactId >junit-jupiter-engine</artifactId >
63- <version >[5.13.3 ,)</version >
63+ <version >[5.14.4 ,)</version >
6464 </dependency >
6565 </dependencies >
6666 </plugin >
172172 <dependency >
173173 <groupId >org.junit.jupiter</groupId >
174174 <artifactId >junit-jupiter-api</artifactId >
175- <version >[5.13.3 ,)</version >
175+ <version >[5.14.4 ,)</version >
176176 <scope >test</scope >
177177 </dependency >
178178 <dependency >
179179 <groupId >org.junit.jupiter</groupId >
180180 <artifactId >junit-jupiter-engine</artifactId >
181- <version >[5.13.3 ,)</version >
181+ <version >[5.14.4 ,)</version >
182182 <scope >test</scope >
183183 </dependency >
184184 <dependency >
185185 <groupId >org.junit.platform</groupId >
186186 <artifactId >junit-platform-launcher</artifactId >
187- <version >[1.13.3 ,)</version >
187+ <version >[1.14.4 ,)</version >
188188 <scope >test</scope >
189189 </dependency >
190190 <dependency >
You can’t perform that action at this time.
0 commit comments