Browse Source

Fix Compose scripts

pull/1227/head
Igor Demin 3 years ago
parent
commit
19d716d0c5
  1. 6
      compose/build.gradle.kts

6
compose/build.gradle.kts

@ -1,7 +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 isWebExists = composeBuild.projectDir.resolve(".jbWebBranchMergedMarker").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:
// ./gradlew -p frameworks/support help --task xxx // ./gradlew -p frameworks/support help --task xxx
@ -46,7 +46,7 @@ tasks.register("publishComposeJb") {
dependsOnComposeTask("$it:publishAndroidReleasePublicationToMavenRepository") dependsOnComposeTask("$it:publishAndroidReleasePublicationToMavenRepository")
} }
if (isWebExists) { if (isWebExist) {
listOf( listOf(
":compose:runtime:runtime", ":compose:runtime:runtime",
).forEach { ).forEach {
@ -83,7 +83,7 @@ tasks.register("testComposeJbDesktop") {
dependsOnComposeTask(":compose:runtime:runtime-saveable:desktopTest") dependsOnComposeTask(":compose:runtime:runtime-saveable:desktopTest")
} }
if (isWebExists) { if (isWebExist) {
tasks.register("testComposeJbWeb") { tasks.register("testComposeJbWeb") {
dependsOnComposeTask(":compose:runtime:runtime:jsTest") dependsOnComposeTask(":compose:runtime:runtime:jsTest")
dependsOnComposeTask(":compose:runtime:runtime:test") dependsOnComposeTask(":compose:runtime:runtime:test")

Loading…
Cancel
Save