Skip to content

Commit 07eed8b

Browse files
author
Santos Zatarain Vera
committed
Support the Java Module System through Automatic-Module-Name manifest entry (Kotlin#2237).
1 parent dbfb4ae commit 07eed8b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

kotlinx-coroutines-core/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ static def setupManifest(Jar jar) {
219219
jar.manifest {
220220
attributes "Premain-Class": "kotlinx.coroutines.debug.AgentPremain"
221221
attributes "Can-Retransform-Classes": "true"
222+
attributes "Automatic-Module-Name": "kotlinx.coroutines.core"
222223
}
223224
}
224225

ui/kotlinx-coroutines-javafx/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ val jdk8Test by tasks.registering(Test::class) {
5252
dependsOn(checkJdk8)
5353
}
5454

55+
tasks.jar {
56+
manifest {
57+
attributes["Automatic-Module-Name"] = "kotlinx.coroutines.javafx"
58+
}
59+
}
60+
5561
tasks.build {
5662
dependsOn(jdk8Test)
5763
}

0 commit comments

Comments
 (0)