diff --git a/gradle-plugins/buildSrc/src/main/kotlin/BuildProperties.kt b/gradle-plugins/buildSrc/src/main/kotlin/BuildProperties.kt index 1811562002..8afb7c76b5 100644 --- a/gradle-plugins/buildSrc/src/main/kotlin/BuildProperties.kt +++ b/gradle-plugins/buildSrc/src/main/kotlin/BuildProperties.kt @@ -7,8 +7,9 @@ object BuildProperties { const val website = "https://jetbrains.org/compose" const val vcs = "https://github.com/JetBrains/compose-jb" fun composeVersion(project: Project): String = - project.findProperty("compose.version") as? String - ?: System.getenv("COMPOSE_GRADLE_PLUGIN_COMPOSE_VERSION") - ?: "0.1.0-SNAPSHOT" - fun deployVersion(project: Project): String = System.getenv("COMPOSE_GRADLE_PLUGIN_VERSION") ?: composeVersion(project) + System.getenv("COMPOSE_GRADLE_PLUGIN_COMPOSE_VERSION") + ?: project.findProperty("compose.version") as String + fun deployVersion(project: Project): String = + System.getenv("COMPOSE_GRADLE_PLUGIN_VERSION") + ?: project.findProperty("deploy.version") as String } diff --git a/gradle-plugins/gradle.properties b/gradle-plugins/gradle.properties index 2273c3c84a..23cf8d3002 100644 --- a/gradle-plugins/gradle.properties +++ b/gradle-plugins/gradle.properties @@ -1,4 +1,13 @@ org.gradle.parallel=true kotlin.code.style=official -#compose.version=0.1.0-m1-build57 \ No newline at end of file +# A version of Compose libraries, +# that will be used by published Gradle plugin, +# unless overridden by COMPOSE_GRADLE_PLUGIN_COMPOSE_VERSION env var. +# +# __LATEST_COMPOSE_RELEASE_VERSION__ +compose.version=0.1.0-build113 + +# A version of Gradle plugin, that will be published, +# unless overridden by COMPOSE_GRADLE_PLUGIN_VERSION env var. +deploy.version=0.1.0-SNAPSHOT \ No newline at end of file