8a82c1618c
When plugins DSL is used, there is no need to manually generate typesafe accessors for extensions and conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
26 lines
472 B
Kotlin
26 lines
472 B
Kotlin
|
|
plugins {
|
|
java
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
jvmTarget = "1.6"
|
|
javaHome = rootProject.extra["JDK_16"] as String
|
|
|
|
dependencies {
|
|
compileOnly(projectDist(":kotlin-stdlib"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
sourceCompatibility = "1.6"
|
|
targetCompatibility = "1.6"
|
|
}
|
|
|
|
if (project.hasProperty("teamcity"))
|
|
tasks["compileJava"].dependsOn(":prepare:build.version:writeCompilerVersion") |