Skip to content

Commit b0e1e93

Browse files
committed
Update to 1.3.20 to mitigate some plugin issues, cleanup gradle files
1 parent 03b58e3 commit b0e1e93

File tree

8 files changed

+18
-25
lines changed

8 files changed

+18
-25
lines changed

build.gradle

+2-8
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,8 @@ allprojects {
9898
}
9999

100100
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).all {
101-
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental",
102-
"-Xuse-experimental=kotlin.experimental.ExperimentalTypeInference",
103-
"-Xuse-experimental=kotlin.ExperimentalMultiplatform",
104-
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
105-
"-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi",
106-
"-Xuse-experimental=kotlinx.coroutines.InternalCoroutinesApi",
107-
"-progressive"]
101+
kotlinOptions.freeCompilerArgs += experimentalAnnotations.collect { "-Xuse-experimental=" + it }
102+
kotlinOptions.freeCompilerArgs += "-progressive"
108103
// Binary compatibility support
109104
kotlinOptions.freeCompilerArgs += ["-Xdump-declarations-to=${buildDir}/visibilities.json"]
110105
}
@@ -122,7 +117,6 @@ configure(subprojects.findAll { !sourceless.contains(it.name) && it.name != "ben
122117
}
123118

124119
def core_docs_url = "https://kotlin.github.io/kotlinx.coroutines/$coreModule/"
125-
//def core_docs_url = "http://127.0.0.1:4000/kotlinx.coroutines/$coreModule/"
126120
def core_docs_file = "$projectDir/kotlinx-coroutines-core/build/dokka/kotlinx-coroutines-core/package-list"
127121

128122
configure(subprojects.findAll { !unpublished.contains(it.name) }) {

gradle.properties

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Kotlin
22
version=1.1.0-SNAPSHOT
33
group=org.jetbrains.kotlinx
4-
kotlin_version=1.3.11
5-
kotlin_native_version=1.3.11
4+
kotlin_version=1.3.20-eap-113
65

76
# Dependencies
87
junit_version=4.12
9-
atomicFU_version=0.12.0
8+
atomicFU_version=0.12.0-native-1.3.20-eap-52
109
html_version=0.6.8
1110
lincheck_version=2.0
1211
dokka_version=0.9.16-rdev-2-mpp-hacks
@@ -23,4 +22,4 @@ mocha_headless_chrome_version=1.8.2
2322
mocha_teamcity_reporter_version=2.2.2
2423
source_map_support_version=0.5.3
2524

26-
kotlin.incremental.multiplatform=true
25+
kotlin.incremental.multiplatform=true

gradle/compile-common.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
kotlin.sourceSets {
66
commonMain.dependencies {
7-
api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-common', version: kotlin_version
7+
api "org.jetbrains.kotlin:kotlin-stdlib-common:$kotlin_version"
88
api "org.jetbrains.kotlinx:atomicfu-common:$atomicFU_version"
99
}
1010

gradle/compile-native-multiplatform.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ kotlin {
99
fromPreset(presets.iosX64, 'iosX64')
1010
fromPreset(presets.macosX64, 'macosX64')
1111
fromPreset(presets.mingwX64, 'windowsX64')
12-
// TODO mingw :
1312
}
1413
}
1514

gradle/maven-central.gradle

-8
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,4 @@ project.ext.configureMavenCentralMetadata = {
3434
root.appendNode('description', 'Coroutines support libraries for Kotlin')
3535
root.appendNode('url', 'https://github.com/Kotlin/kotlinx.coroutines')
3636
root.children().last() + pomConfig
37-
38-
def dependenciesNode = asNode().getAt("dependencies")[0]
39-
if (dependenciesNode != null) {
40-
def dependencyNode = dependenciesNode.appendNode('dependency')
41-
dependencyNode.appendNode('groupId', "$group")
42-
dependencyNode.appendNode('artifactId', "$project.name")
43-
dependencyNode.appendNode('version', "$project.version")
44-
}
4537
}

gradle/publish-bintray.gradle

+10
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ publishing {
8282
}
8383
}
8484

85+
disableMetadataPublicationKotlinJvm()
8586
return
8687
}
8788

@@ -116,6 +117,15 @@ publishing {
116117
disableMetadataPublication()
117118
}
118119

120+
private void disableMetadataPublicationKotlinJvm() {
121+
publishing.publications.each { pub ->
122+
pub.gradleModuleMetadataFile = null
123+
tasks.matching { it.name == "generateMetadataFileFor${pub.name.capitalize()}Publication" }.all {
124+
onlyIf { false }
125+
}
126+
}
127+
}
128+
119129
private void disableMetadataPublication() {
120130
kotlin.targets.all { target ->
121131
def publication = publishing.publications.findByName(target.name)

kotlinx-coroutines-core/native/src/internal/Concurrent.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ internal actual fun <E> subscriberList(): MutableList<E> = CopyOnWriteList<E>()
1818
internal actual fun <E> identitySet(expectedSize: Int): MutableSet<E> = HashSet()
1919

2020
@Suppress("ACTUAL_WITHOUT_EXPECT")
21-
internal actual typealias SharedImmutable = kotlin.native.SharedImmutable
21+
internal actual typealias SharedImmutable = kotlin.native.concurrent.SharedImmutable

kotlinx-coroutines-core/native/src/internal/ThreadLocal.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
*/
44

55
package kotlinx.coroutines.internal
6-
import kotlin.native.concurrent.*
76

87
@Suppress("ACTUAL_WITHOUT_EXPECT")
9-
internal actual typealias NativeThreadLocal = kotlin.native.ThreadLocal
8+
internal actual typealias NativeThreadLocal = kotlin.native.concurrent.ThreadLocal
109

1110
internal actual class CommonThreadLocal<T> actual constructor() {
1211
private var value: T? = null

0 commit comments

Comments
 (0)