Skip to content

Commit

Permalink
add source-compatibility for all projects to fix codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
Bdegraaf1234 committed Mar 14, 2024
1 parent fb13d76 commit a667fcb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tasks.withType<KotlinCompile> {
}
}

tasks.withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
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 a667fcb

Please sign in to comment.