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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user