From 9c8c56fcaa98579fbc00fe9f74f7f2851b03ef22 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:12:31 -0400 Subject: [PATCH] Update logic to use version only --- languages/java/build.gradle | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/languages/java/build.gradle b/languages/java/build.gradle index a28a7445b..7e98de1de 100644 --- a/languages/java/build.gradle +++ b/languages/java/build.gradle @@ -34,13 +34,7 @@ repositories { // Main: Grab it from `crates/bitwarden/Cargo.toml` def branchName = "git branch --show-current".execute().text.trim() - - if (branchName == "main") { - version = "1.0.1" - } else { - // branchName-SNAPSHOT - version = "${branchName.replaceAll('/', '-')}-SNAPSHOT" - } + version = "1.0.1" afterEvaluate { from components.java