Migrate stdlib generator to gradle and include it to the main project
Use latest released kotlin compiler and stdlib to build it.
This commit is contained in:
@@ -12,6 +12,7 @@ include ':kotlin-stdlib-js'
|
|||||||
include ':kotlin-stdlib-jre7'
|
include ':kotlin-stdlib-jre7'
|
||||||
include ':kotlin-stdlib-jre8'
|
include ':kotlin-stdlib-jre8'
|
||||||
include ':tools:binary-compatibility-validator'
|
include ':tools:binary-compatibility-validator'
|
||||||
|
include ':tools:kotlin-stdlib-gen'
|
||||||
//include ':kotlin-reflect'
|
//include ':kotlin-reflect'
|
||||||
|
|
||||||
//include ':kotlin-compiler'
|
//include ':kotlin-compiler'
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
apply plugin: 'kotlin'
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main.kotlin.srcDir 'src'
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile 'org.jetbrains.kotlin:kotlin-stdlib:1.1.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
compileKotlin {
|
||||||
|
compilerJarFile = null
|
||||||
|
kotlinOptions.freeCompilerArgs = ["-version"]
|
||||||
|
}
|
||||||
|
|
||||||
|
task run(type: JavaExec) {
|
||||||
|
group 'application'
|
||||||
|
main 'generators.GenerateStandardLibKt'
|
||||||
|
classpath sourceSets.main.runtimeClasspath
|
||||||
|
args = ["${rootDir}/.."]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user