0f41dc814f
also refactor some locally defined tasks to the creation avoidance API
64 lines
1.4 KiB
Groovy
64 lines
1.4 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'jps-compatible'
|
|
|
|
configureJvmProject(project)
|
|
configurePublishing(project)
|
|
|
|
compileJava {
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
options.fork = false
|
|
}
|
|
|
|
pill {
|
|
variant = 'FULL'
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':kotlin-gradle-plugin-api')
|
|
compile project(':kotlin-gradle-plugin-model')
|
|
|
|
compile kotlinStdlib()
|
|
compileOnly project(':compiler')
|
|
compileOnly project(':kotlin-noarg-compiler-plugin')
|
|
|
|
compileOnly gradleApi()
|
|
|
|
testCompile gradleApi()
|
|
testCompile "junit:junit:4.12"
|
|
|
|
embedded(project(":kotlin-noarg-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 {
|
|
kotlinNoargPlugin {
|
|
id = 'org.jetbrains.kotlin.plugin.noarg'
|
|
description = displayName = 'Kotlin No Arg compiler plugin'
|
|
}
|
|
kotlinJpaPlugin {
|
|
id = 'org.jetbrains.kotlin.plugin.jpa'
|
|
description = displayName = 'Kotlin JPA compiler plugin'
|
|
}
|
|
}
|
|
}
|
|
|
|
test.executable = "${JDK_18}/bin/java" |