Prepare gradle config for building libs - bootstrap and runtime

Use external gradle plugin (1.1-M04) with compiler.jar from dist
Add empty build scripts for other projects that needs to be built with gradle
This commit is contained in:
Ilya Chernikov
2016-12-29 17:41:22 +01:00
committed by Ilya Gorbunov
parent 8e3453f0eb
commit c2c051cfe8
10 changed files with 206 additions and 0 deletions
@@ -0,0 +1,5 @@
description = ''
dependencies {
compile project(':kotlin-stdlib')
}
+42
View File
@@ -0,0 +1,42 @@
dependencies {
compile group: 'org.jetbrains', name: 'annotations', version:'13.0'
}
sourceSets {
main {
java {
srcDir "${rootDir}/../core/builtins/src"
srcDir "${rootDir}/../core/runtime.jvm/src"
exclude "org/jetbrains/annotations/**"
}
kotlin {
srcDir "${rootDir}/../core/builtins/src"
srcDir "${rootDir}/../core/runtime.jvm/src"
exclude "org/jetbrains/annotations/**"
}
}
}
jar {
baseName = project.name
from("${rootDir}/../dist/builtins")
manifest {
attributes 'Implementation-Title': 'Kotlin Runtime',
'Implementation-Version': version,
'Kotlin-Runtime-Component': 'Core'
}
}
artifacts {
archives sourcesJar
archives javadocJar
}
compileKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-module-name", "${project.name}".toString()]
}