From 083bd022bc748836cc14ebb2cdf512123f286800 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 13 Dec 2024 02:59:25 +0100 Subject: [PATCH] Add Kotlin compiler configuration --- build.gradle.kts | 12 ++++++++++++ gradle.properties | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) 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