From 8b207baa27ff8e0ba36971dd05433f65b3977d0a Mon Sep 17 00:00:00 2001 From: Sara Freimer Date: Tue, 1 Aug 2023 16:51:10 -0500 Subject: [PATCH] List both Forge and NeoForge for now via CurseForgeGradle and Minotaur --- build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index 5d0add5e840..5fe4a55f407 100644 --- a/build.gradle +++ b/build.gradle @@ -780,6 +780,8 @@ void setGenericCurseArtifactData(UploadArtifact artifact, String changelog) { artifact.changelog = changelog artifact.changelogType = 'html' artifact.releaseType = "${release_type}" + //Add that we support forge for now as we currently support both Forge and NeoForge. NeoForge is detected automatically from the gradle plugin + artifact.addModLoader("Forge") } void uploadSecondaryCurseProject(TaskPublishCurseForge task, long projectId, String changelog, TaskProvider sourceSetJar) { @@ -815,6 +817,11 @@ if (System.getenv("MODRINTH_TOKEN") != null || project.hasProperty('modrinthToke versionType = "${release_type}" changelog = changeLogResolver.call() uploadFile = jar + //Add that we support forge for now as we currently support both Forge and NeoForge + // Note: Once we no longer support forge we can just remove the line as NeoForge will be able to be detected automatically + // Currently we can't as Minotaur only detects loaders if none are set + loaders.addAll("forge", "neoforge") + getAdditionalFiles().value([apiJar.get()]) //Note: Can't use nested dependency configuration as we have no way to clear it for the secondary uploads getDependencies().value([