Alexey Tsvetkov
4 years ago
4 changed files with 11 additions and 6 deletions
@ -1,11 +1,14 @@
|
||||
import org.gradle.api.Project |
||||
|
||||
// "Global" properties |
||||
object BuildProperties { |
||||
const val name = "JetBrains Compose Plugin" |
||||
const val group = "org.jetbrains.compose" |
||||
const val website = "https://jetbrains.org/compose" |
||||
const val vcs = "https://github.com/JetBrains/compose-jb" |
||||
val composeVersion: String |
||||
get() = System.getenv("COMPOSE_GRADLE_PLUGIN_COMPOSE_VERSION") ?: "0.1.0-SNAPSHOT" |
||||
val version: String |
||||
get() = System.getenv("COMPOSE_GRADLE_PLUGIN_VERSION") ?: composeVersion |
||||
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) |
||||
} |
||||
|
Loading…
Reference in new issue