Skip to content

Commit

Permalink
Update logic to use version only
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrassia committed Oct 17, 2024
1 parent 6babf9e commit 9c8c56f
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 9c8c56f

Please sign in to comment.