Include new coroutines and unsigned classes into stdlib
Fix clashing module name in common coroutines sourceset
This commit is contained in:
@@ -18,6 +18,7 @@ sourceSets {
|
||||
kotlin {
|
||||
srcDir 'src'
|
||||
srcDir commonSrcDir
|
||||
srcDir '../unsigned/src'
|
||||
}
|
||||
}
|
||||
test {
|
||||
@@ -26,11 +27,6 @@ sourceSets {
|
||||
srcDir 'test'
|
||||
}
|
||||
}
|
||||
unsigned {
|
||||
kotlin {
|
||||
srcDir '../unsigned/src'
|
||||
}
|
||||
}
|
||||
coroutines {
|
||||
kotlin {
|
||||
srcDir '../coroutines/common/src'
|
||||
@@ -43,7 +39,6 @@ dependencies {
|
||||
testCompile project(":kotlin-test:kotlin-test-common")
|
||||
testCompile project(":kotlin-test:kotlin-test-annotations-common")
|
||||
|
||||
unsignedCompile sourceSets.main.output
|
||||
coroutinesCompile sourceSets.main.output
|
||||
}
|
||||
|
||||
@@ -57,17 +52,6 @@ compileKotlinCommon {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs = [
|
||||
"-module-name", project.name,
|
||||
"-Xuse-experimental=kotlin.Experimental",
|
||||
"-Xallow-kotlin-package"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
compileUnsignedKotlinCommon {
|
||||
kotlinOptions {
|
||||
languageVersion = "1.3"
|
||||
apiVersion = "1.3"
|
||||
freeCompilerArgs += [
|
||||
"-Xuse-experimental=kotlin.Experimental",
|
||||
"-Xuse-experimental=kotlin.ExperimentalUnsignedTypes",
|
||||
"-XXLanguage:+InlineClasses",
|
||||
@@ -81,7 +65,7 @@ compileCoroutinesKotlinCommon {
|
||||
languageVersion = "1.3"
|
||||
apiVersion = "1.3"
|
||||
freeCompilerArgs = [
|
||||
"-module-name", project.name,
|
||||
"-module-name", project.name+"-coroutines",
|
||||
"-Xallow-kotlin-package"
|
||||
]
|
||||
}
|
||||
@@ -91,6 +75,7 @@ kotlin.experimental.coroutines 'enable'
|
||||
|
||||
jar {
|
||||
manifestAttributes(manifest, project, 'Main')
|
||||
from sourceSets.coroutines.output
|
||||
}
|
||||
|
||||
task coroutinesCommonJar(type: Jar) {
|
||||
@@ -98,12 +83,12 @@ task coroutinesCommonJar(type: Jar) {
|
||||
version = null
|
||||
manifestAttributes(manifest, project, 'Main')
|
||||
project.configure(manifest) { attributes 'Kotlin-Version': '1.3' }
|
||||
from sourceSets.coroutines.output
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.kotlin
|
||||
from sourceSets.coroutines.kotlin
|
||||
}
|
||||
|
||||
configurations {
|
||||
|
||||
Reference in New Issue
Block a user