Add checks that kotlin-native.swift-export.enabled is actually turned on

Merge-request: KT-MR-13506
Merged-by: Artem Olkov <artem.olkov@jetbrains.com>
This commit is contained in:
Artem Olkov
2023-12-14 10:27:19 +00:00
committed by Space Team
parent 28f0f1ea88
commit cae6e0ee0f
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ sourceSets {
optInToExperimentalCompilerApi()
if (project.hasProperty("kotlin-native.swift-export.enabled")) {
if (project.kotlinBuildProperties.isSwiftExportPluginPublishingEnabled) {
// todo: is you are removing this check - don't forget to run tests in repo/artifacts-tests/src/test/kotlin/org/jetbrains/kotlin/code/ArtifactsTest.kt
publish()
}
@@ -6,7 +6,8 @@ dependencies {
embedded(project(":kotlin-swift-export-compiler-plugin")) { isTransitive = false }
}
if (project.hasProperty("kotlin-native.swift-export.enabled")) {
if (project.kotlinBuildProperties.isSwiftExportPluginPublishingEnabled) {
// todo: is you are removing this check - don't forget to run tests in repo/artifacts-tests/src/test/kotlin/org/jetbrains/kotlin/code/ArtifactsTest.kt
publish {
artifactId = "kotlin-swift-export-compiler-plugin-embeddable"
}
@@ -59,3 +59,6 @@ val KotlinBuildProperties.useFirWithLightTree: Boolean
val KotlinBuildProperties.useFirTightIC: Boolean
get() = getBoolean("kotlin.build.useFirIC")
val KotlinBuildProperties.isSwiftExportPluginPublishingEnabled: Boolean
get() = getBoolean("kotlin-native.swift-export.enabled")