diff --git a/build.gradle.kts b/build.gradle.kts index cab65ed..ef56dd7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,6 @@ import org.jetbrains.dokka.DokkaConfiguration import org.jetbrains.dokka.gradle.DokkaTask +import org.jetbrains.kotlin.gradle.dsl.JvmTarget import java.net.URI /* @@ -94,6 +95,17 @@ allprojects { } } + // Kotlin + kotlin.compilerOptions { + // Configuration + progressiveMode = true + allWarningsAsErrors = true + verbose = true + + // Set target metadata + jvmTarget = JvmTarget.valueOf("JVM_${property("java") as String}") + } + // Dokka // -> Register jar generation tasks // See https://kotlinlang.org/docs/dokka-gradle.html#build-javadoc-jar diff --git a/gradle.properties b/gradle.properties index be4ab81..4de4671 100644 --- a/gradle.properties +++ b/gradle.properties @@ -30,7 +30,7 @@ versionTyperelease=10 versionFork= versionCompanion= -# Java +# Language versions java=21 # Dependencies