Skip to content

Commit

Permalink
List both Forge and NeoForge for now via CurseForgeGradle and Minotaur
Browse files Browse the repository at this point in the history
  • Loading branch information
pupnewfster committed Aug 1, 2023
1 parent 0071ff4 commit 8b207ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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<Jar> sourceSetJar) {
Expand Down Expand Up @@ -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([
Expand Down

0 comments on commit 8b207ba

Please sign in to comment.