From 15a756346b04169f1fa856d2aca2a1c2bdb6ffa2 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 23 Dec 2021 00:11:22 +0000 Subject: [PATCH] build: Fetch version first from system env "mirai.build.project.version" --- buildSrc/src/main/kotlin/Versions.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index 7288a9867..79ff069db 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -14,11 +14,11 @@ import org.gradle.kotlin.dsl.exclude import org.jetbrains.kotlin.gradle.plugin.KotlinDependencyHandler object Versions { - const val project = "2.10.0-RC" + val project = System.getenv("mirai.build.project.version") ?: "2.10.0-RC" - const val core = project - const val console = project - const val consoleTerminal = project + val core = project + val console = project + val consoleTerminal = project const val kotlinCompiler = "1.6.0" const val kotlinStdlib = kotlinCompiler