Skip to content

Commit

Permalink
Get version if set in command line
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignas committed Dec 23, 2023
1 parent 0feb28a commit 3058557
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ plugins {
id 'com.ryandens.javaagent-application' version "0.4.2"
}

def rawVersion = project.hasProperty('version') ? project.version : '0.1.0-SNAPSHOT'
def versionWithoutPrefix = rawVersion.replaceAll('^v', '')

group = 'lt.pow.nukagit'
version = '0.1-SNAPSHOT'
version = versionWithoutPrefix
mainClassName = 'lt.pow.nukagit.Main'

repositories {
Expand Down

0 comments on commit 3058557

Please sign in to comment.