Add builds for main stdlib, stdlib jre7/8, kotlin.test
This commit is contained in:
committed by
Ilya Gorbunov
parent
ed9221cb7d
commit
35a135cbf6
@@ -1,6 +1,58 @@
|
||||
|
||||
description = ''
|
||||
description = 'Kotlin stdlib'
|
||||
|
||||
dependencies {
|
||||
compile project(':kotlin-runtime')
|
||||
compile project(':kotlin-test-parent:kotlin-test')
|
||||
compile('junit:junit:4.12')
|
||||
testCompile project(':kotlin-test-parent:kotlin-test-junit')
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
kotlin {
|
||||
srcDir 'src'
|
||||
}
|
||||
java {
|
||||
srcDir 'src'
|
||||
}
|
||||
}
|
||||
test {
|
||||
kotlin {
|
||||
srcDir 'test'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'Kotlin-Runtime-Component': 'Core',
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
compileJava {
|
||||
sourceCompatibility = 1.6
|
||||
targetCompatibility = 1.6
|
||||
}
|
||||
|
||||
compileTestJava {
|
||||
sourceCompatibility = 1.6
|
||||
targetCompatibility = 1.6
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package",
|
||||
"-Xmultifile-parts-inherit",
|
||||
"-Xdump-declarations-to", "${buildDir}/stdlib-declarations.json".toString(),
|
||||
"-module-name", "${project.name}".toString()]
|
||||
}
|
||||
|
||||
compileTestKotlin {
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,56 @@
|
||||
|
||||
description = ''
|
||||
description = 'Kotlin stdlib JRE 7'
|
||||
|
||||
dependencies {
|
||||
compile project(':kotlin-stdlib')
|
||||
testCompile project(':kotlin-test-parent:kotlin-test-junit')
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
kotlin {
|
||||
srcDir 'src'
|
||||
}
|
||||
}
|
||||
test {
|
||||
kotlin {
|
||||
srcDir 'test'
|
||||
srcDir '../test'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'Kotlin-Runtime-Component': 'Core',
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
compileJava {
|
||||
sourceCompatibility = 1.7
|
||||
targetCompatibility = 1.7
|
||||
}
|
||||
|
||||
compileTestJava {
|
||||
sourceCompatibility = 1.7
|
||||
targetCompatibility = 1.7
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.jdkHome = System.getenv('JDK_17')
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package",
|
||||
"-Xmultifile-parts-inherit",
|
||||
"-Xdump-declarations-to", "${buildDir}/stdlib-declarations.json".toString(),
|
||||
"-module-name", "${project.name}".toString()]
|
||||
}
|
||||
|
||||
compileTestKotlin {
|
||||
kotlinOptions.jdkHome = System.getenv('JDK_17')
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,61 @@
|
||||
|
||||
description = ''
|
||||
description = 'Kotlin stdlib JRE 8'
|
||||
|
||||
dependencies {
|
||||
compile project(':kotlin-stdlib')
|
||||
compile project(':kotlin-stdlib-jre7')
|
||||
testCompile project(':kotlin-test-parent:kotlin-test-junit')
|
||||
testCompile project(':kotlin-stdlib-jre7')
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
kotlin {
|
||||
srcDir 'src'
|
||||
}
|
||||
}
|
||||
test {
|
||||
kotlin {
|
||||
srcDir 'test'
|
||||
srcDir '../test'
|
||||
srcDir '../jre7/test'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'Kotlin-Runtime-Component': 'Core',
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
compileJava {
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
}
|
||||
|
||||
compileTestJava {
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.jdkHome = System.getenv('JDK_18')
|
||||
kotlinOptions.jvmTarget = 1.8
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package",
|
||||
"-Xmultifile-parts-inherit",
|
||||
"-Xdump-declarations-to", "${buildDir}/stdlib-declarations.json".toString(),
|
||||
"-module-name", "${project.name}".toString()]
|
||||
}
|
||||
|
||||
compileTestKotlin {
|
||||
kotlinOptions.jdkHome = System.getenv('JDK_18')
|
||||
kotlinOptions.jvmTarget = 1.8
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user