Skip to content

Commit

Permalink
gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
adam committed Jul 18, 2024
1 parent 8b49817 commit 24d4217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ subprojects {
}

processResources {
var git_hash = getGitHash()
def expandProps = [
"version" : version,
"git_head" : getGitHash(),
"version" : version + ((is_dev.toLowerCase() == "true" || is_dev == "1") ? "-DEV-" + git_hash : ""),
"git_head" : git_hash,
"group" : project.group, //Else we target the task's group.
"minecraft_version" : minecraft_version,
"minecraft_version_range" : minecraft_version_range,
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Every field you add must be added to the root build.gradle expandProps map.

# Project
is_dev=true
version=1.1
group=com.adamcalculator.dynamicpack

Expand Down

0 comments on commit 24d4217

Please sign in to comment.