Files
kotlin-fork/libraries/tools/kotlin-allopen/build.gradle
T
Ilya Chernikov 0f41dc814f Switch many common tasks defined in buildSrc to lazy creation
also refactor some locally defined tasks to the creation avoidance API
2019-08-21 20:20:08 +02:00

58 lines
1.4 KiB
Groovy

apply plugin: 'kotlin'
apply plugin: 'jps-compatible'
configureJvmProject(project)
configurePublishing(project)
pill {
variant = 'FULL'
}
dependencies {
compile project(':kotlin-gradle-plugin-api')
compile project(':kotlin-gradle-plugin-model')
compile kotlinStdlib()
compileOnly project(path: ':kotlin-compiler-embeddable', configuration: 'runtimeJar')
compileOnly project(':kotlin-allopen-compiler-plugin')
compileOnly gradleApi()
testCompile gradleApi()
testCompile "junit:junit:4.12"
embedded(project(":kotlin-allopen-compiler-plugin")) { transitive = false }
}
tasks.withType(project.compileKotlin.class) {
kotlinOptions.languageVersion = "1.2"
kotlinOptions.apiVersion = "1.2"
kotlinOptions.freeCompilerArgs += ["-Xskip-metadata-version-check"]
}
jar {
manifestAttributes(manifest, project)
}
ArtifactsKt.runtimeJar(project, EmbeddableKt.rewriteDefaultJarDepsToShadedCompiler(project, {}), {})
artifacts {
archives sourcesJar
}
javadocJar()
pluginBundle {
plugins {
kotlinAllopenPlugin {
id = 'org.jetbrains.kotlin.plugin.allopen'
description = displayName = 'Kotlin All Open compiler plugin'
}
kotlinSpringPlugin {
id = 'org.jetbrains.kotlin.plugin.spring'
description = displayName = 'Kotlin Spring compiler plugin'
}
}
}
test.executable = "${JDK_18}/bin/java"