Files
kotlin-fork/libraries/tools/kotlin-stdlib-gen/build.gradle
T
Ilya Gorbunov f05efd58de Support Native target platform in kotlin-stdlib-gen
- Allow to select target platform and target directory to generate source for
- Put copyright profile to resources to have it in the resulting jar
- Output error for missing bodies, but do not stop generation on the first error
2018-12-26 19:52:49 +03:00

36 lines
744 B
Groovy

apply plugin: 'kotlin'
sourceSets {
main {
kotlin.srcDir 'src'
resources.srcDir "$buildDir/copyright"
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$bootstrapKotlinVersion"
compile "org.jetbrains.kotlin:kotlin-reflect:$bootstrapKotlinVersion"
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-version"]
}
}
task copyCopyrightProfile(type: Copy) {
from "$rootDir/.idea/copyright"
into "$buildDir/copyright"
include 'apache.xml'
}
processResources {
dependsOn(copyCopyrightProfile)
}
task run(type: JavaExec) {
group 'application'
main 'generators.GenerateStandardLibKt'
classpath sourceSets.main.runtimeClasspath
args = ["${rootDir}"]
}