Skip to content

Commit fe66e08

Browse files
authored
Java 17
1 parent 4c96171 commit fe66e08

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
kotlin("jvm") version "2.0.21"
33
jacoco
44
id("org.sonarqube") version "5.1.0.4882"
5-
id("com.diffplug.spotless") version "6.21.0"
5+
id("com.diffplug.spotless") version "6.25.0"
66
`maven-publish`
77
}
88

@@ -15,10 +15,10 @@ repositories {
1515

1616
dependencies {
1717
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.21")
18-
testImplementation("org.junit.jupiter:junit-jupiter:[5.11.0,)")
19-
testImplementation("org.hamcrest:hamcrest-core:[2.2,)")
18+
testImplementation("org.junit.jupiter:junit-jupiter:[5.11.3,)")
19+
testImplementation("org.hamcrest:hamcrest-core:[3.0,)")
2020
testImplementation("org.zapodot:embedded-db-junit-jupiter:[2.2.0,)")
21-
testRuntimeOnly("org.junit.platform:junit-platform-launcher:[1.11.0,)")
21+
testRuntimeOnly("org.junit.platform:junit-platform-launcher:[1.11.3,)")
2222
}
2323

2424
tasks.test {
@@ -29,12 +29,12 @@ tasks.test {
2929
group = "com.github.javadev"
3030
version = "1.30-SNAPSHOT"
3131
description = "leetcode-in-kotlin"
32-
java.sourceCompatibility = JavaVersion.VERSION_11
33-
java.targetCompatibility = JavaVersion.VERSION_11
32+
java.sourceCompatibility = JavaVersion.VERSION_17
33+
java.targetCompatibility = JavaVersion.VERSION_17
3434

3535
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
3636
compilerOptions {
37-
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
37+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
3838
}
3939
}
4040

pom-central.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<artifactId>kotlin-maven-plugin</artifactId>
4848
<version>${kotlin.version}</version>
4949
<configuration>
50-
<jvmTarget>11</jvmTarget>
50+
<jvmTarget>17</jvmTarget>
5151
</configuration>
5252
<executions>
5353
<execution>
@@ -74,7 +74,7 @@
7474
<dependency>
7575
<groupId>org.junit.jupiter</groupId>
7676
<artifactId>junit-jupiter-engine</artifactId>
77-
<version>[5.11.0,)</version>
77+
<version>[5.11.3,)</version>
7878
</dependency>
7979
</dependencies>
8080
</plugin>
@@ -121,7 +121,7 @@
121121
</execution>
122122
</executions>
123123
<configuration>
124-
<jdkVersion>11</jdkVersion>
124+
<jdkVersion>17</jdkVersion>
125125
</configuration>
126126
</plugin>
127127
<plugin>
@@ -149,25 +149,25 @@
149149
<dependency>
150150
<groupId>org.junit.jupiter</groupId>
151151
<artifactId>junit-jupiter-api</artifactId>
152-
<version>[5.11.0,)</version>
152+
<version>[5.11.2,)</version>
153153
<scope>test</scope>
154154
</dependency>
155155
<dependency>
156156
<groupId>org.junit.jupiter</groupId>
157157
<artifactId>junit-jupiter-engine</artifactId>
158-
<version>[5.11.0,)</version>
158+
<version>[5.11.3,)</version>
159159
<scope>test</scope>
160160
</dependency>
161161
<dependency>
162162
<groupId>org.junit.platform</groupId>
163163
<artifactId>junit-platform-launcher</artifactId>
164-
<version>[1.11.0,)</version>
164+
<version>[1.11.3,)</version>
165165
<scope>test</scope>
166166
</dependency>
167167
<dependency>
168168
<groupId>org.hamcrest</groupId>
169169
<artifactId>hamcrest-core</artifactId>
170-
<version>[2.2,)</version>
170+
<version>[3.0,)</version>
171171
<scope>test</scope>
172172
</dependency>
173173
<dependency>

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<artifactId>kotlin-maven-plugin</artifactId>
4747
<version>${kotlin.version}</version>
4848
<configuration>
49-
<jvmTarget>11</jvmTarget>
49+
<jvmTarget>17</jvmTarget>
5050
</configuration>
5151
<executions>
5252
<execution>
@@ -73,7 +73,7 @@
7373
<dependency>
7474
<groupId>org.junit.jupiter</groupId>
7575
<artifactId>junit-jupiter-engine</artifactId>
76-
<version>[5.11.0,)</version>
76+
<version>[5.11.3,)</version>
7777
</dependency>
7878
</dependencies>
7979
</plugin>
@@ -140,25 +140,25 @@
140140
<dependency>
141141
<groupId>org.junit.jupiter</groupId>
142142
<artifactId>junit-jupiter-api</artifactId>
143-
<version>[5.11.0,)</version>
143+
<version>[5.11.3,)</version>
144144
<scope>test</scope>
145145
</dependency>
146146
<dependency>
147147
<groupId>org.junit.jupiter</groupId>
148148
<artifactId>junit-jupiter-engine</artifactId>
149-
<version>[5.11.0,)</version>
149+
<version>[5.11.3,)</version>
150150
<scope>test</scope>
151151
</dependency>
152152
<dependency>
153153
<groupId>org.junit.platform</groupId>
154154
<artifactId>junit-platform-launcher</artifactId>
155-
<version>[1.11.0,)</version>
155+
<version>[1.11.3,)</version>
156156
<scope>test</scope>
157157
</dependency>
158158
<dependency>
159159
<groupId>org.hamcrest</groupId>
160160
<artifactId>hamcrest-core</artifactId>
161-
<version>[2.2,)</version>
161+
<version>[3.0,)</version>
162162
<scope>test</scope>
163163
</dependency>
164164
<dependency>

0 commit comments

Comments
 (0)