Skip to content

Commit

Permalink
Update buildscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRyken committed Jan 17, 2025
1 parent 33bc401 commit cb4f768
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
}

subprojects {
mod_version = "${mod_version}+${minecraft_version}"
version = mod_version
group = mod_group

Expand Down Expand Up @@ -130,7 +131,7 @@ subprojects {
String versionChangelog() {
List<String> lines = rootProject.file("CHANGELOG.md").readLines()
StringBuilder builder = new StringBuilder()
if ("${mod_version}".startsWith(lines.get(2).substring(3))) {
if ("${mod_version}" == lines.get(2).substring(3)) {
for (int i = 4; i < lines.size(); i++) {
String line = lines.get(i)
if (line.startsWith("## ")) {
Expand All @@ -142,7 +143,7 @@ String versionChangelog() {
}
} else {
throw new IllegalArgumentException(
String.format("Mod version '%s' does not start with changelog version '%s'",
String.format("Mod version '%s' does not match changelog version '%s'",
mod_version, lines.get(2).substring(3)))
}
return builder.toString()
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/multiloader-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jar {
processResources {
def expandProps = [
// Mod info
"mod_version": mod_version,
"mod_version": "${mod_version}+${minecraft_version}",
"mod_group": mod_group,
"mod_id": mod_id,
"mod_name": mod_name,
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Neo/Forge version ranges: https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html

# Project
mod_version=2.0.4+1.21
mod_version=2.0.4
mod_group=dev.terminalmc
mod_id=claimpoints
mod_name=ClaimPoints
Expand Down

0 comments on commit cb4f768

Please sign in to comment.