From 93ca145b0a808aa0bf3d2ae0ff040e756cf0dca5 Mon Sep 17 00:00:00 2001 From: Sergey Igushkin Date: Thu, 16 Sep 2021 12:28:08 +0300 Subject: [PATCH] Disable desktop modules publishing with open-expect-lite mode AndroidX --- compose/build.gradle.kts | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/compose/build.gradle.kts b/compose/build.gradle.kts index 1d2de0a52b..00833fddce 100644 --- a/compose/build.gradle.kts +++ b/compose/build.gradle.kts @@ -12,13 +12,15 @@ tasks.register("publishComposeJb") { dependsOnComposeTask(":compose:compiler:compiler-hosted:publishMavenPublicationToMavenRepository") dependsOnComposeTask(":compose:ui:ui-tooling-data:publishMavenPublicationToMavenRepository") - dependsOnComposeTask(":compose:desktop:desktop:publishKotlinMultiplatformPublicationToMavenRepository") - dependsOnComposeTask(":compose:desktop:desktop:publishJvmPublicationToMavenRepository") - dependsOnComposeTask(":compose:desktop:desktop:publishJvmlinux-x64PublicationToMavenRepository") - dependsOnComposeTask(":compose:desktop:desktop:publishJvmlinux-arm64PublicationToMavenRepository") - dependsOnComposeTask(":compose:desktop:desktop:publishJvmmacos-x64PublicationToMavenRepository") - dependsOnComposeTask(":compose:desktop:desktop:publishJvmmacos-arm64PublicationToMavenRepository") - dependsOnComposeTask(":compose:desktop:desktop:publishJvmwindows-x64PublicationToMavenRepository") + if (findProperty("androidx.compose.openExpectLiteMode") != "androidx") { + dependsOnComposeTask(":compose:desktop:desktop:publishKotlinMultiplatformPublicationToMavenRepository") + dependsOnComposeTask(":compose:desktop:desktop:publishJvmPublicationToMavenRepository") + dependsOnComposeTask(":compose:desktop:desktop:publishJvmlinux-x64PublicationToMavenRepository") + dependsOnComposeTask(":compose:desktop:desktop:publishJvmlinux-arm64PublicationToMavenRepository") + dependsOnComposeTask(":compose:desktop:desktop:publishJvmmacos-x64PublicationToMavenRepository") + dependsOnComposeTask(":compose:desktop:desktop:publishJvmmacos-arm64PublicationToMavenRepository") + dependsOnComposeTask(":compose:desktop:desktop:publishJvmwindows-x64PublicationToMavenRepository") + } listOf( ":compose:animation:animation", @@ -42,9 +44,13 @@ tasks.register("publishComposeJb") { ":compose:ui:ui-util", ).forEach { dependsOnComposeTask("$it:publishKotlinMultiplatformPublicationToMavenRepository") - dependsOnComposeTask("$it:publishDesktopPublicationToMavenRepository") - dependsOnComposeTask("$it:publishAndroidDebugPublicationToMavenRepository") - dependsOnComposeTask("$it:publishAndroidReleasePublicationToMavenRepository") + if (findProperty("androidx.compose.openExpectLiteMode") != "androidx") { + dependsOnComposeTask("$it:publishDesktopPublicationToMavenRepository") + } + if (findProperty("androidx.compose.openExpectLiteMode") != "org_jetbrains") { + dependsOnComposeTask("$it:publishAndroidDebugPublicationToMavenRepository") + dependsOnComposeTask("$it:publishAndroidReleasePublicationToMavenRepository") + } } listOf(