Skip to content

Commit

Permalink
BRE-367 - Update logic to use version only (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrassia authored Oct 17, 2024
1 parent f9757b1 commit 6460db2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions languages/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6460db2

Please sign in to comment.