Add Kotlin compiler configuration

This commit is contained in:
JeremyStar™ 2024-12-13 02:59:25 +01:00
parent 5fb6046e5f
commit 083bd022bc
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 13 additions and 1 deletions

View file

@ -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

View file

@ -30,7 +30,7 @@ versionTyperelease=10
versionFork=
versionCompanion=
# Java
# Language versions
java=21
# Dependencies