Skip to content

Commit

Permalink
build: put modrinth publish in afterEvaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 committed Dec 31, 2024
1 parent 6aacecd commit a80cd1c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions buildSrc/src/main/groovy/multiloader-loader.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ tasks.named('sourcesJar', Jar) {
from(configurations.commonResources)
}

modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "${modrinth_id}"
versionNumber = "${version}"
versionType = "${version_type}"
versionName = "${mod_name} - ${version}"
changelog = new File("$rootDir/docs/CHANGELOG.md").text
uploadFile = [this.project.name.contains("neoforge") ? tasks.jar : tasks.<Jar>findByName("remapJar")]
gameVersions = ["${minecraft_version}"]
loaders = [this.project.name.contains("neoforge") ? "neoforge" : "fabric"]
}

afterEvaluate {
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "${modrinth_id}"
versionNumber = "${version}"
versionType = "${version_type}"
versionName = "${mod_name} - ${version}"
changelog = new File("$rootDir/docs/CHANGELOG.md").text
uploadFile = [this.project.name.contains("neoforge") ? tasks.jar : tasks.<Jar>findByName("remapJar")]
gameVersions = ["${minecraft_version}"]
loaders = [this.project.name.contains("neoforge") ? "neoforge" : "fabric"]
}

curseforge {
project {
apiKey = System.getenv("CURSEFORGE_TOKEN")
Expand Down

0 comments on commit a80cd1c

Please sign in to comment.