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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user