Build all web examples with -Pcompose.web.buildSamples=true

This commit is contained in:
Shagen Ogandzhanian
2021-07-27 14:14:29 +02:00
parent 82468294f4
commit ab3ac73f83
3 changed files with 4 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
val COMPOSE_WEB_VERSION: String by project
val COMPOSE_REPO_USERNAME: String? by project
val COMPOSE_REPO_KEY: String? by project
val COMPOSE_WEB_BUILD_WITH_EXAMPLES = project.property("COMPOSE_WEB_BUILD_WITH_EXAMPLES")!!.toString()?.toBoolean()
val COMPOSE_WEB_BUILD_WITH_SAMPLES = project.property("compose.web.buildSamples")!!.toString().toBoolean()
apply<jetbrains.compose.web.gradle.SeleniumDriverPlugin>()
@@ -26,7 +26,7 @@ subprojects {
}
}
if (COMPOSE_WEB_BUILD_WITH_EXAMPLES) {
if (COMPOSE_WEB_BUILD_WITH_SAMPLES) {
println("substituting published artifacts with projects ones in project $name")
configurations.all {
resolutionStrategy.dependencySubstitution {

View File

@@ -2,4 +2,5 @@
COMPOSE_CORE_VERSION=0.5.0-build262
COMPOSE_WEB_VERSION=0.5.0-build262
COMPOSE_WEB_BUILD_WITH_EXAMPLES=false
compose.web.buildSamples=false
compose.web.tests.integration.withFirefox

View File

@@ -35,7 +35,7 @@ module(":web-integration-widgets", "$rootDir/integration-widgets")
module(":web-benchmark-core", "$rootDir/benchmark-core")
module(":compose-compiler-integration", "$rootDir/compose-compiler-integration")
if (extra["COMPOSE_WEB_BUILD_WITH_EXAMPLES"]!!.toString().toBoolean() == true) {
if (extra["compose.web.buildSamples"]!!.toString().toBoolean() == true) {
println("building with examples")
module(":examples:falling_balls_with_web", "../examples/falling_balls_with_web")
module(":examples:compose-web-lp", "../examples/web_landing")