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
This commit is contained in:
Ilya Gorbunov
2018-12-25 06:54:54 +03:00
parent 7b43d5c972
commit f05efd58de
4 changed files with 58 additions and 23 deletions
+14 -1
View File
@@ -1,7 +1,10 @@
apply plugin: 'kotlin'
sourceSets {
main.kotlin.srcDir 'src'
main {
kotlin.srcDir 'src'
resources.srcDir "$buildDir/copyright"
}
}
dependencies {
@@ -15,6 +18,16 @@ compileKotlin {
}
}
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'