Files
kotlin-fork/libraries/tools/kotlin-gradle-plugin-api/build.gradle.kts
T
Alexander Udalov f273edeb8e Build: upgrade language to 1.3 in cli, compiler plugins and Gradle plugin
The language/API version restriction here is to make sure the code works
with Gradle of earlier versions, but all versions of Gradle that we
support already depend on Kotlin 1.3+.
2020-09-22 19:10:58 +02:00

35 lines
675 B
Kotlin

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.pill.PillExtension
plugins {
kotlin("jvm")
id("jps-compatible")
}
publish()
standardPublicJars()
dependencies {
compile(kotlinStdlib())
compileOnly(gradleApi())
compileOnly("com.android.tools.build:gradle:0.4.2")
}
pill {
variant = PillExtension.Variant.FULL
}
tasks {
withType<KotlinCompile> {
kotlinOptions.languageVersion = "1.3"
kotlinOptions.apiVersion = "1.3"
kotlinOptions.freeCompilerArgs += listOf("-Xskip-prerelease-check")
}
named<Jar>("jar") {
callGroovy("manifestAttributes", manifest, project)
}
}