mirror of
https://github.com/irmen/prog8.git
synced 2025-02-22 01:29:07 +00:00
35 lines
762 B
Plaintext
35 lines
762 B
Plaintext
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.jetbrains.kotlin.gradle.internal.config.LanguageFeature
|
|
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.1.10"
|
|
}
|
|
|
|
allprojects {
|
|
apply(plugin="kotlin")
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs = listOf("-Xwhen-guards")
|
|
jvmTarget = JvmTarget.JVM_11
|
|
}
|
|
sourceSets.all {
|
|
languageSettings {
|
|
// enable language features like so:
|
|
// enableLanguageFeature(LanguageFeature.WhenGuards.name)
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
}
|