|
|
@ -1,6 +1,7 @@ |
|
|
|
val composeBuild = gradle.includedBuild("support") |
|
|
|
val composeBuild = gradle.includedBuild("support") |
|
|
|
fun Task.dependsOnComposeTask(name: String) = dependsOn(composeBuild.task(name)) |
|
|
|
fun Task.dependsOnComposeTask(name: String) = dependsOn(composeBuild.task(name)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val isOelPublication = project.findProperty("oel.publication") == "true" |
|
|
|
val isWebExist = composeBuild.projectDir.resolve(".jbWebExistsMarker").exists() |
|
|
|
val isWebExist = composeBuild.projectDir.resolve(".jbWebExistsMarker").exists() |
|
|
|
|
|
|
|
|
|
|
|
// To show all projects which use `xxx` task, run: |
|
|
|
// To show all projects which use `xxx` task, run: |
|
|
@ -42,9 +43,12 @@ tasks.register("publishComposeJb") { |
|
|
|
).forEach { |
|
|
|
).forEach { |
|
|
|
dependsOnComposeTask("$it:publishKotlinMultiplatformPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishKotlinMultiplatformPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishDesktopPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishDesktopPublicationToMavenRepository") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isOelPublication) { |
|
|
|
dependsOnComposeTask("$it:publishAndroidDebugPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishAndroidDebugPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishAndroidReleasePublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishAndroidReleasePublicationToMavenRepository") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (isWebExist) { |
|
|
|
if (isWebExist) { |
|
|
|
listOf( |
|
|
|
listOf( |
|
|
@ -63,9 +67,12 @@ tasks.register("publishComposeJbExtendedIcons") { |
|
|
|
).forEach { |
|
|
|
).forEach { |
|
|
|
dependsOnComposeTask("$it:publishKotlinMultiplatformPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishKotlinMultiplatformPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishDesktopPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishDesktopPublicationToMavenRepository") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isOelPublication) { |
|
|
|
dependsOnComposeTask("$it:publishAndroidDebugPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishAndroidDebugPublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishAndroidReleasePublicationToMavenRepository") |
|
|
|
dependsOnComposeTask("$it:publishAndroidReleasePublicationToMavenRepository") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tasks.register("testComposeJbDesktop") { |
|
|
|
tasks.register("testComposeJbDesktop") { |
|
|
@ -99,7 +106,7 @@ tasks.register("testRuntimeNative") { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tasks.register("testComposeModules") { // used in https://github.com/JetBrains/androidx/tree/jb-main/.github/workflows |
|
|
|
tasks.register("testComposeModules") { // used in https://github.com/JetBrains/androidx/tree/jb-main/.github/workflows |
|
|
|
// TODO: donwload robolectrict to run ui:ui:test |
|
|
|
// TODO: download robolectrict to run ui:ui:test |
|
|
|
// dependsOnComposeTask(":compose:ui:ui:test") |
|
|
|
// dependsOnComposeTask(":compose:ui:ui:test") |
|
|
|
|
|
|
|
|
|
|
|
dependsOnComposeTask(":compose:ui:ui-graphics:test") |
|
|
|
dependsOnComposeTask(":compose:ui:ui-graphics:test") |
|
|
|