@@ -54,6 +54,7 @@ void defineSourceSet(newName, dependsOn, includedInPred) {
54
54
}
55
55
56
56
static boolean isNativeDarwin (String name ) { return [" ios" , " macos" , " tvos" , " watchos" ]. any { name. startsWith(it) } }
57
+
57
58
static boolean isNativeOther (String name ) { return [" linux" , " mingw" ]. any { name. startsWith(it) } }
58
59
59
60
defineSourceSet(" concurrent" , [" common" ]) { it in [" jvm" , " native" ] }
@@ -122,11 +123,11 @@ def configureNativeSourceSetPreset(name, preset) {
122
123
def implementationConfiguration = configurations[hostMainCompilation. defaultSourceSet. implementationMetadataConfigurationName]
123
124
// Now find the libraries: Finds platform libs & stdlib, but platform declarations are still not resolved due to IDE bugs
124
125
def hostNativePlatformLibs = files(
125
- provider {
126
- implementationConfiguration. findAll {
127
- it. path. endsWith(" .klib" ) || it. absolutePath. contains(" klib${ File.separator} platform" ) || it. absolutePath. contains(" stdlib" )
126
+ provider {
127
+ implementationConfiguration. findAll {
128
+ it. path. endsWith(" .klib" ) || it. absolutePath. contains(" klib${ File.separator} platform" ) || it. absolutePath. contains(" stdlib" )
129
+ }
128
130
}
129
- }
130
131
)
131
132
// Add all those dependencies
132
133
for (suffix in sourceSetSuffixes) {
@@ -219,6 +220,7 @@ static def setupManifest(Jar jar) {
219
220
jar. manifest {
220
221
attributes " Premain-Class" : " kotlinx.coroutines.debug.AgentPremain"
221
222
attributes " Can-Retransform-Classes" : " true"
223
+ attributes " Automatic-Module-Name" : " kotlinx.coroutines.core"
222
224
}
223
225
}
224
226
0 commit comments