42 lines
856 B
Groovy
42 lines
856 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.6.20'
|
|
}
|
|
|
|
group 'org.example'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
sourceCompatibility = 11
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2"
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
freeCompilerArgs += "-Xcontext-receivers"
|
|
}
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
freeCompilerArgs += "-Xcontext-receivers"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
kotlinOptions {
|
|
jvmTarget = '11'
|
|
freeCompilerArgs += '-Xcontent-receivers'
|
|
}
|
|
}
|
|
} |