From 093d9a628b3d618057b4a180c1e93e44c9b2c048 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sat, 21 Dec 2024 13:26:09 +0300 Subject: [PATCH] publish all targets by default --- src/main/kotlin/space/kscience/gradle/KScienceExtension.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/space/kscience/gradle/KScienceExtension.kt b/src/main/kotlin/space/kscience/gradle/KScienceExtension.kt index b6ea52e..f03cf71 100644 --- a/src/main/kotlin/space/kscience/gradle/KScienceExtension.kt +++ b/src/main/kotlin/space/kscience/gradle/KScienceExtension.kt @@ -288,9 +288,7 @@ public class KScienceNativeConfiguration(private val project: Project) { internal companion object { private fun defaultNativeTargets(project: Project): Set = - if (project.isInDevelopment) { - setOf(KScienceNativeTarget.linuxX64) - } else when (val targets = project.requestPropertyOrNull("publishing.targets")) { + when (val targets = project.requestPropertyOrNull("publishing.targets")) { null -> setOf( KScienceNativeTarget.linuxX64, KScienceNativeTarget.mingwX64, @@ -303,7 +301,7 @@ public class KScienceNativeConfiguration(private val project: Project) { else -> targets.split(",").mapTo(HashSet()) { KScienceNativeTarget(KotlinNativePreset.valueOf(it)) - } + } } }