Skip to content

Commit

Permalink
make build gradle use VERSION_NAME env if available
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed Oct 11, 2023
1 parent cd26601 commit a4615bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ plugins {
id "com.matthewprenger.cursegradle" version "1.+" // curseforge publishing
}

version = project.mod_version
var versionEnv = System.getenv("VERSION_NAME")
version = versionEnv != null ? verisonEnv : project.mod_version
group = project.maven_group

repositories {
Expand Down
6 changes: 0 additions & 6 deletions gradle/publishing/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ ext /*-ra properties*/ {

properties.forEach ((k, v) -> set(k, v))

versionEnv = System.getenv("VERSION_NAME")

if (versionEnv != null) {
version = versionEnv
}

version_valid = versionValidForPublishing(version)
published_version_name = version_valid ? makeName(version, minecraft_version, display_name) : "INVALID"
changelog_text = getChangelog(file(changelog_file))
Expand Down

0 comments on commit a4615bd

Please sign in to comment.