Add builds for main stdlib, stdlib jre7/8, kotlin.test
This commit is contained in:
committed by
Ilya Gorbunov
parent
ed9221cb7d
commit
35a135cbf6
@@ -32,6 +32,11 @@ subprojects {
|
||||
from("${rootDir}/../dist/kotlinc/build.txt") { into("META-INF/") }
|
||||
}
|
||||
|
||||
// TODO: use dokka instead?
|
||||
javadoc {
|
||||
failOnError = false
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn:classes) {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.allSource
|
||||
|
||||
@@ -1,5 +1,42 @@
|
||||
|
||||
description = ''
|
||||
description = 'Kotlin Test JUnit'
|
||||
|
||||
dependencies {
|
||||
compile project(':kotlin-runtime')
|
||||
compile project(':kotlin-test-parent:kotlin-test')
|
||||
compile('junit:junit:4.12')
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
kotlin {
|
||||
srcDir 'src/main/kotlin'
|
||||
srcDir 'src/main/kotlin.jvm'
|
||||
}
|
||||
}
|
||||
test {
|
||||
kotlin {
|
||||
srcDir 'src/test/kotlin'
|
||||
srcDir 'src/test/kotlin.jvm'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-module-name", "${project.name}".toString()]
|
||||
}
|
||||
|
||||
compileTestKotlin {
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
||||
}
|
||||
|
||||
@@ -1,2 +1,47 @@
|
||||
|
||||
description = ''
|
||||
description = 'Kotlin Test'
|
||||
|
||||
dependencies {
|
||||
compile project(':kotlin-runtime')
|
||||
compile('junit:junit:4.12')
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
kotlin {
|
||||
srcDir 'src/main/kotlin'
|
||||
srcDir 'src/main/kotlin.jvm'
|
||||
}
|
||||
}
|
||||
test {
|
||||
kotlin {
|
||||
srcDir 'src/test/kotlin'
|
||||
srcDir 'src/test/kotlin.jvm'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'addDefaultImplementationEntries': true,
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
dependsOn classes
|
||||
from sourceSets.main.output
|
||||
exclude('kotlin/internal/OnlyInputTypes*')
|
||||
exclude('kotlin/internal/InlineOnly*')
|
||||
exclude('kotlin/internal')
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-module-name", "${project.name}".toString()]
|
||||
}
|
||||
|
||||
compileTestKotlin {
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
|
||||
@@ -33,6 +33,14 @@ artifacts {
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
compileJava {
|
||||
sourceCompatibility = 1.6
|
||||
targetCompatibility = 1.6
|
||||
options.fork = true
|
||||
// TODO: find how to fix on macos
|
||||
// options.bootClasspath = "${System.getenv('JDK_16')}/jre/lib/rt.jar"
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-module-name", "${project.name}".toString()]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user