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 4 years ago
parent
commit
3dcc3db2ec
  1. 5
      web/build.gradle.kts
  2. 1
      web/gradle.properties

5
web/build.gradle.kts

@ -4,8 +4,9 @@ plugins {
id("org.jetbrains.kotlin.multiplatform") version("1.4.32") apply(false) id("org.jetbrains.kotlin.multiplatform") version("1.4.32") apply(false)
} }
val COMPOSE_WEB_VERSION: String by project
subprojects { subprojects {
apply(plugin = "maven-publish") apply(plugin = "maven-publish")
pluginManager.withPlugin("maven-publish") { pluginManager.withPlugin("maven-publish") {
@ -13,7 +14,7 @@ subprojects {
publications { publications {
create<MavenPublication>("maven") { create<MavenPublication>("maven") {
groupId = "org.jetbrains.compose.web" 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_CORE_VERSION = 0.0.8-SNAPSHOT
COMPOSE_WEB_VERSION = 0.0.8-SNAPSHOT

Loading…
Cancel
Save