mirror of
https://github.com/irmen/prog8.git
synced 2026-04-19 20:16:51 +00:00
39 lines
972 B
Kotlin
39 lines
972 B
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmDefaultMode
|
|
import org.jetbrains.kotlin.gradle.internal.config.LanguageFeature
|
|
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
|
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.3.10"
|
|
}
|
|
|
|
allprojects {
|
|
apply(plugin="kotlin")
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs = listOf()
|
|
jvmTarget = JvmTarget.JVM_11
|
|
jvmDefault = JvmDefaultMode.NO_COMPATIBILITY
|
|
// languageVersion.set(KotlinVersion.KOTLIN_2_3)
|
|
}
|
|
sourceSets.all {
|
|
languageSettings {
|
|
// enable language features like so:
|
|
// enableLanguageFeature(LanguageFeature.WhenGuards.name)
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
}
|