mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Build all web examples with -Pcompose.web.buildSamples=true
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user