Browse Source

Put COMPOSE_WEB_VERSION to the gradle properties and do not invoke System.getEnv directly

Using getEnv at this phase leads to a configuration error. It's most
likely a bug in gradle.
pull/685/head
Shagen Ogandzhanian 3 years ago
parent
commit
3dcc3db2ec
  1. 3
      web/build.gradle.kts
  2. 1
      web/gradle.properties

3
web/build.gradle.kts

@ -4,6 +4,7 @@ plugins {
id("org.jetbrains.kotlin.multiplatform") version("1.4.32") apply(false)
}
val COMPOSE_WEB_VERSION: String by project
subprojects {
apply(plugin = "maven-publish")
@ -13,7 +14,7 @@ subprojects {
publications {
create<MavenPublication>("maven") {
groupId = "org.jetbrains.compose.web"
version = System.getenv("COMPOSE_WEB_VERSION")
version = COMPOSE_WEB_VERSION
}
}

1
web/gradle.properties

@ -1 +1,2 @@
COMPOSE_CORE_VERSION = 0.0.8-SNAPSHOT
COMPOSE_WEB_VERSION = 0.0.8-SNAPSHOT

Loading…
Cancel
Save