Skip to content

Commit

Permalink
Make version number adhere to semver better (ValkyrienSkies#321)
Browse files Browse the repository at this point in the history
* Update publish-curseforge.gradle

* Update publish-curseforge.gradle

* Update gradle.properties

* Update publish-curseforge.gradle
  • Loading branch information
Rubydesic authored Jan 15, 2023
1 parent 8594eec commit a066aaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle-scripts/publish-curseforge.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// alpha, beta, or release
def vsReleaseType = 'alpha'
if (project.hasProperty("CustomReleaseVersion")) {
def matches = project.property("CustomReleaseVersion") =~ 'release/(?:\\d+\\.){1,2}\\d+-(alpha|beta)\\d+'
def matches = project.property("CustomReleaseVersion") =~ 'release/(?:\\d+\\.){1,2}\\d+(?:-(alpha|beta).\\d+)?'

vsReleaseType = matches[0][1] ?: 'release'
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx4096M
minecraft_version=1.18.2
enabled_platforms=quilt,fabric,forge
archives_base_name=valkyrienskies-118
mod_version=2.1.0-beta10
mod_version=2.1.0-beta.10
maven_group=org.valkyrienskies.mod
architectury_version=4.10.86
fabric_loader_version=0.14.10
Expand Down

0 comments on commit a066aaf

Please sign in to comment.