diff --git a/SKIE/acceptance-tests b/SKIE/acceptance-tests index 6d126fee..d1c48879 160000 --- a/SKIE/acceptance-tests +++ b/SKIE/acceptance-tests @@ -1 +1 @@ -Subproject commit 6d126feef23dbbb482b272c8c3630b6239300da2 +Subproject commit d1c48879dd947a907807ebbfabe0cf286a4be849 diff --git a/SKIE/common/configuration/annotations/configuration-annotations.gradle.kts b/SKIE/common/configuration/annotations/configuration-annotations.gradle.kts index de6cdc5e..42c656c8 100644 --- a/SKIE/common/configuration/annotations/configuration-annotations.gradle.kts +++ b/SKIE/common/configuration/annotations/configuration-annotations.gradle.kts @@ -14,9 +14,10 @@ multiCompileRuntime { klibPath = { kotlinVersion, target -> if (target.platformType == KotlinPlatformType.jvm) { "build/libs/configuration-annotations-${kotlinVersion}-${target.name.lowercase()}-${version}.jar" + } else if (kotlinVersion >= MultiCompileTarget.kotlin_2_1_0) { + "build/libs/configuration-annotations-${kotlinVersion}-${target.name}Main-${version}.klib" } else { - val includeKlibExtension = true // kotlinVersion < MultiCompileTarget.kotlin_2_1_0 - "build/classes/kotlin/${target.name}/main/klib/configuration-annotations-${kotlinVersion}" + if (includeKlibExtension) ".klib" else "" + "build/classes/kotlin/${target.name}/main/klib/configuration-annotations-${kotlinVersion}.klib" } } } diff --git a/SKIE/common/configuration/annotations/impl/gradle.properties b/SKIE/common/configuration/annotations/impl/gradle.properties index ecb029cf..c8b39be9 100644 --- a/SKIE/common/configuration/annotations/impl/gradle.properties +++ b/SKIE/common/configuration/annotations/impl/gradle.properties @@ -2,4 +2,3 @@ org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=500m -XX:+UseParallelGC kotlin.internal.compiler.arguments.log.level=info -kotlin.internal.klibs.non-packed=false diff --git a/SKIE/runtime/kotlin/impl/gradle.properties b/SKIE/runtime/kotlin/impl/gradle.properties index 4316993e..0419103d 100644 --- a/SKIE/runtime/kotlin/impl/gradle.properties +++ b/SKIE/runtime/kotlin/impl/gradle.properties @@ -1,3 +1,2 @@ org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=500m -XX:+UseParallelGC -kotlin.internal.klibs.non-packed=false diff --git a/SKIE/runtime/kotlin/runtime-kotlin.gradle.kts b/SKIE/runtime/kotlin/runtime-kotlin.gradle.kts index 7cd03d3d..04ef572e 100644 --- a/SKIE/runtime/kotlin/runtime-kotlin.gradle.kts +++ b/SKIE/runtime/kotlin/runtime-kotlin.gradle.kts @@ -10,8 +10,11 @@ multiCompileRuntime { isPublishable = true targets.set(MultiCompileTarget.allDarwin) klibPath = { kotlinVersion, target -> - val includeKlibExtension = true // kotlinVersion < MultiCompileTarget.kotlin_2_1_0 - "build/classes/kotlin/${target.name}/main/klib/runtime-kotlin-${kotlinVersion}" + if (includeKlibExtension) ".klib" else "" + if (kotlinVersion >= MultiCompileTarget.kotlin_2_1_0) { + "build/libs/runtime-kotlin-${kotlinVersion}-${target.name}Main-${version}.klib" + } else { + "build/classes/kotlin/${target.name}/main/klib/runtime-kotlin-${kotlinVersion}.klib" + } } dependencies = { _ -> "implementation(libs.kotlinx.coroutines.core)" diff --git a/build-setup/src/main/kotlin/co/touchlab/skie/buildsetup/plugins/SkieMultiCompileRuntime.kt b/build-setup/src/main/kotlin/co/touchlab/skie/buildsetup/plugins/SkieMultiCompileRuntime.kt index a09a0292..b11069c9 100644 --- a/build-setup/src/main/kotlin/co/touchlab/skie/buildsetup/plugins/SkieMultiCompileRuntime.kt +++ b/build-setup/src/main/kotlin/co/touchlab/skie/buildsetup/plugins/SkieMultiCompileRuntime.kt @@ -1,6 +1,7 @@ package co.touchlab.skie.buildsetup.plugins import co.touchlab.skie.buildsetup.plugins.MultiCompileTarget.Companion.kotlin_1_9_0 +import co.touchlab.skie.buildsetup.plugins.MultiCompileTarget.Companion.kotlin_2_1_0 import co.touchlab.skie.buildsetup.tasks.BuildNestedGradle import co.touchlab.skie.gradle.KotlinCompilerVersion import co.touchlab.skie.gradle.KotlinToolingVersion @@ -56,7 +57,7 @@ class SkieMultiCompileRuntime: Plugin { val buildTask = registerBuildTask( name = kotlinToolingVersion.name.toString(), supportedTargetsWithDeclarations = supportedTargetsWithDeclarations, - kotlinVersion = kotlinToolingVersion.primaryVersion, + kotlinVersion = kotlinToolingVersion.name, copyTask = copyTask, ) @@ -210,9 +211,14 @@ class SkieMultiCompileRuntime: Plugin { "${target.name}LegacyJar", ) } - KotlinPlatformType.native, KotlinPlatformType.wasm -> listOf("${target.name}MainKlibrary") + + KotlinPlatformType.native, KotlinPlatformType.wasm -> if (kotlinVersion >= kotlin_2_1_0) { + listOf("${target.name}Klib") + } else { + listOf("${target.name}MainKlibrary") + } } - } + }, ) } } diff --git a/common-gradle/gradle.properties b/common-gradle/gradle.properties index 35912f96..003d6ddf 100644 --- a/common-gradle/gradle.properties +++ b/common-gradle/gradle.properties @@ -27,4 +27,3 @@ kotlinNativeCompilerEmbeddableFromHome=true kotlin.internal.compiler.arguments.log.level=info -kotlin.internal.klibs.non-packed=false