f05efd58de
- 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
36 lines
744 B
Groovy
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}"]
|
|
} |