|
|
|
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()
|
|
|
|
|
|
|
|
apply<jetbrains.compose.web.gradle.SeleniumDriverPlugin>()
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply(plugin = "maven-publish")
|
|
|
|
|
|
|
|
group = "org.jetbrains.compose.web"
|
|
|
|
version = COMPOSE_WEB_VERSION
|
|
|
|
|
|
|
|
pluginManager.withPlugin("maven-publish") {
|
|
|
|
configure<PublishingExtension> {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = "internal"
|
|
|
|
url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
|
|
credentials {
|
|
|
|
username = COMPOSE_REPO_USERNAME ?: ""
|
|
|
|
password = COMPOSE_REPO_KEY ?: ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (COMPOSE_WEB_BUILD_WITH_EXAMPLES) {
|
|
|
|
println("substituting published artifacts with projects ones in project $name")
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.dependencySubstitution {
|
|
|
|
substitute(module("org.jetbrains.compose.web:web-widgets")).apply {
|
|
|
|
with(project(":web-widgets"))
|
|
|
|
}
|
|
|
|
substitute(module("org.jetbrains.compose.web:web-core")).apply {
|
|
|
|
with(project(":web-core"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url = uri("https://packages.jetbrains.team/maven/p/ui/dev")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|