Skip to content

Commit

Permalink
Support the Java Module System through Automatic-Module-Name manifest…
Browse files Browse the repository at this point in the history
… entry (Kotlin#2237).
  • Loading branch information
Santos Zatarain Vera committed Aug 26, 2021
1 parent dbfb4ae commit 07eed8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions kotlinx-coroutines-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ static def setupManifest(Jar jar) {
jar.manifest {
attributes "Premain-Class": "kotlinx.coroutines.debug.AgentPremain"
attributes "Can-Retransform-Classes": "true"
attributes "Automatic-Module-Name": "kotlinx.coroutines.core"
}
}

Expand Down
6 changes: 6 additions & 0 deletions ui/kotlinx-coroutines-javafx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ val jdk8Test by tasks.registering(Test::class) {
dependsOn(checkJdk8)
}

tasks.jar {
manifest {
attributes["Automatic-Module-Name"] = "kotlinx.coroutines.javafx"
}
}

tasks.build {
dependsOn(jdk8Test)
}

0 comments on commit 07eed8b

Please sign in to comment.