Skip to content

Commit

Permalink
properly set target JVM to avoid using deprecated functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
paulchen committed May 29, 2024
1 parent 6fa9441 commit cce7b8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import java.io.ByteArrayOutputStream
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.owasp.dependencycheck.gradle.extension.DependencyCheckExtension
import org.owasp.dependencycheck.reporting.ReportGenerator
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Expand Down Expand Up @@ -106,7 +107,9 @@ dependencies {
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
}

tasks.withType<JavaCompile> {
Expand Down

0 comments on commit cce7b8d

Please sign in to comment.