Add Kotlin compiler configuration
This commit is contained in:
parent
5fb6046e5f
commit
083bd022bc
2 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
import org.jetbrains.dokka.DokkaConfiguration
|
import org.jetbrains.dokka.DokkaConfiguration
|
||||||
import org.jetbrains.dokka.gradle.DokkaTask
|
import org.jetbrains.dokka.gradle.DokkaTask
|
||||||
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
import java.net.URI
|
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
|
// Dokka
|
||||||
// -> Register jar generation tasks
|
// -> Register jar generation tasks
|
||||||
// See https://kotlinlang.org/docs/dokka-gradle.html#build-javadoc-jar
|
// See https://kotlinlang.org/docs/dokka-gradle.html#build-javadoc-jar
|
||||||
|
|
|
@ -30,7 +30,7 @@ versionTyperelease=10
|
||||||
versionFork=
|
versionFork=
|
||||||
versionCompanion=
|
versionCompanion=
|
||||||
|
|
||||||
# Java
|
# Language versions
|
||||||
java=21
|
java=21
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
Loading…
Reference in a new issue