Skip to content

Commit

Permalink
Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
javadev authored Nov 21, 2024
1 parent 4c96171 commit fe66e08
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
kotlin("jvm") version "2.0.21"
jacoco
id("org.sonarqube") version "5.1.0.4882"
id("com.diffplug.spotless") version "6.21.0"
id("com.diffplug.spotless") version "6.25.0"
`maven-publish`
}

Expand All @@ -15,10 +15,10 @@ repositories {

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.21")
testImplementation("org.junit.jupiter:junit-jupiter:[5.11.0,)")
testImplementation("org.hamcrest:hamcrest-core:[2.2,)")
testImplementation("org.junit.jupiter:junit-jupiter:[5.11.3,)")
testImplementation("org.hamcrest:hamcrest-core:[3.0,)")
testImplementation("org.zapodot:embedded-db-junit-jupiter:[2.2.0,)")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:[1.11.0,)")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:[1.11.3,)")
}

tasks.test {
Expand All @@ -29,12 +29,12 @@ tasks.test {
group = "com.github.javadev"
version = "1.30-SNAPSHOT"
description = "leetcode-in-kotlin"
java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
}
}

Expand Down
14 changes: 7 additions & 7 deletions pom-central.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<configuration>
<jvmTarget>11</jvmTarget>
<jvmTarget>17</jvmTarget>
</configuration>
<executions>
<execution>
Expand All @@ -74,7 +74,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>[5.11.0,)</version>
<version>[5.11.3,)</version>
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -121,7 +121,7 @@
</execution>
</executions>
<configuration>
<jdkVersion>11</jdkVersion>
<jdkVersion>17</jdkVersion>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -149,25 +149,25 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>[5.11.0,)</version>
<version>[5.11.2,)</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>[5.11.0,)</version>
<version>[5.11.3,)</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>[1.11.0,)</version>
<version>[1.11.3,)</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>[2.2,)</version>
<version>[3.0,)</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<configuration>
<jvmTarget>11</jvmTarget>
<jvmTarget>17</jvmTarget>
</configuration>
<executions>
<execution>
Expand All @@ -73,7 +73,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>[5.11.0,)</version>
<version>[5.11.3,)</version>
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -140,25 +140,25 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>[5.11.0,)</version>
<version>[5.11.3,)</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>[5.11.0,)</version>
<version>[5.11.3,)</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>[1.11.0,)</version>
<version>[1.11.3,)</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>[2.2,)</version>
<version>[3.0,)</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit fe66e08

Please sign in to comment.