From d31201e05f64c4ead20cde91cfb16f1090ecc89b Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Tue, 19 Mar 2024 16:24:38 +0200 Subject: [PATCH] [Swift export] Umbrella publishing task As the set of published artifacts might change over time, we introduce :native:swift:publishAllArtifacts task that hides all the Swift export publishing details. --- native/swift/build.gradle.kts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/native/swift/build.gradle.kts b/native/swift/build.gradle.kts index c0fc909a63d..a87fe8a1edb 100644 --- a/native/swift/build.gradle.kts +++ b/native/swift/build.gradle.kts @@ -8,3 +8,19 @@ tasks.register("sirAllTests") { ":native:swift:sir-printer:test" ) } + +if (kotlinBuildProperties.isSwiftExportPluginPublishingEnabled) { + /** + * An umbrella task to publish all artifacts of the Swift Export tool. + */ + tasks.register("publishAllArtifacts") { + dependsOn( + ":native:swift:sir:publish", + ":native:swift:sir-compiler-bridge:publish", + ":native:swift:sir-passes:publish", + ":native:swift:sir-printer:publish", + ":native:swift:swift-export-standalone:publish", + ":native:swift:swift-export-embeddable:publish", + ) + } +} \ No newline at end of file