Browse Source

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

pull/942/head
Shagen Ogandzhanian 3 years ago
parent
commit
ab3ac73f83
  1. 4
      web/build.gradle.kts
  2. 1
      web/gradle.properties
  3. 2
      web/settings.gradle.kts

4
web/build.gradle.kts

@ -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 {

1
web/gradle.properties

@ -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

2
web/settings.gradle.kts

@ -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")

Loading…
Cancel
Save