From 3dcc3db2ec60c93e7498848430ef886292da713b Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Thu, 20 May 2021 17:24:54 +0200 Subject: [PATCH] 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. --- web/build.gradle.kts | 5 +++-- web/gradle.properties | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/build.gradle.kts b/web/build.gradle.kts index b31365f7c4..6fedfd4497 100644 --- a/web/build.gradle.kts +++ b/web/build.gradle.kts @@ -4,8 +4,9 @@ plugins { id("org.jetbrains.kotlin.multiplatform") version("1.4.32") apply(false) } +val COMPOSE_WEB_VERSION: String by project -subprojects { +subprojects { apply(plugin = "maven-publish") pluginManager.withPlugin("maven-publish") { @@ -13,7 +14,7 @@ subprojects { publications { create("maven") { groupId = "org.jetbrains.compose.web" - version = System.getenv("COMPOSE_WEB_VERSION") + version = COMPOSE_WEB_VERSION } } diff --git a/web/gradle.properties b/web/gradle.properties index acd531e51c..c58757af98 100644 --- a/web/gradle.properties +++ b/web/gradle.properties @@ -1 +1,2 @@ COMPOSE_CORE_VERSION = 0.0.8-SNAPSHOT +COMPOSE_WEB_VERSION = 0.0.8-SNAPSHOT