Skip to content

Commit

Permalink
all java versions to jvm 17
Browse files Browse the repository at this point in the history
  • Loading branch information
Bdegraaf1234 committed Mar 14, 2024
1 parent 5b3319a commit a6146f8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
10 changes: 5 additions & 5 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.9.10"
kotlin("jvm") version "1.9.22"
}

repositories {
Expand All @@ -11,11 +11,11 @@ repositories {

tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
jvmTarget.set(JvmTarget.JVM_17)
}
}

tasks.withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ object Versions {

const val hk2 = "3.0.5"
const val managementPortal = "2.1.0"
const val radarCommons = "1.1.1"
const val radarCommons = "1.1.2"
const val javaJwt = "4.4.0"
const val jakartaWsRs = "3.1.0"
const val jakartaAnnotation = "2.1.1"
Expand All @@ -32,7 +32,7 @@ object Versions {

const val hibernate = "6.4.2.Final"
const val liquibase = "4.25.1"
const val postgres = "42.7.1"
const val postgres = "42.7.2"
const val h2 = "2.2.224"

const val wrapper = "8.4"
Expand Down
5 changes: 5 additions & 0 deletions radar-jersey-hibernate/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ dependencies {
testImplementation("org.hamcrest:hamcrest:${Versions.hamcrest}")
testImplementation("com.squareup.okhttp3:okhttp:${Versions.okhttp}")
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
5 changes: 5 additions & 0 deletions radar-jersey/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ dependencies {
testImplementation("org.mockito.kotlin:mockito-kotlin:${Versions.mockitoKotlin}")
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.processResources {
val properties = mapOf("version" to project.version)
inputs.properties(properties)
Expand Down

0 comments on commit a6146f8

Please sign in to comment.