From bb24e3d6aaea81d1343f7751e20f831312cbff88 Mon Sep 17 00:00:00 2001 From: bconlon Date: Tue, 31 Dec 2024 15:45:07 -0800 Subject: [PATCH] build: put modrinth publish in afterEvaluate --- .../src/main/groovy/multiloader-loader.gradle | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/buildSrc/src/main/groovy/multiloader-loader.gradle b/buildSrc/src/main/groovy/multiloader-loader.gradle index d7af869..8e6708e 100644 --- a/buildSrc/src/main/groovy/multiloader-loader.gradle +++ b/buildSrc/src/main/groovy/multiloader-loader.gradle @@ -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.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.findByName("remapJar")] + gameVersions = ["${minecraft_version}"] + loaders = [this.project.name.contains("neoforge") ? "neoforge" : "fabric"] + } + curseforge { project { apiKey = System.getenv("CURSEFORGE_TOKEN")