modmuss50 / mod-publish-plugin

A Gradle plugin to publish mods to a range of destinations
https://modmuss50.github.io/mod-publish-plugin/
MIT License
50 stars 7 forks source link

Error uploading to curseforge #9

Closed SamsTheNerd closed 11 months ago

SamsTheNerd commented 11 months ago

I'm getting this error

Execution failed for task ':fabric:publishCurseforge'.
> A failure occurred while executing me.modmuss50.mpp.platforms.curseforge.Curseforge$UploadWorkAction
   > Request failed, status: 400 message: `gameVersions` is not allowed when `parentFileID` is provided.

with this gradle setup:

publishMods {
    file = remapJar.archiveFile
    additionalFiles.from(sourcesJar.archiveFile)
    changelog = file("$rootDir/changelog.md").text
    type = STABLE
    modLoaders.add("fabric")
    modLoaders.add("quilt")

    version = project.version + "-fabric"
    displayName = "Hex Gloop" + " " + project.version + "[Fabric]"

    curseforge {
        accessToken = providers.environmentVariable("CURSEFORGE_API_KEY")
        projectId = "897558"
        minecraftVersions.add("1.19.2")
        requires {
            slug = "architectury-api"
        }
        requires {
            slug = "hexcasting"
        }
        requires {
            slug = "wnboi"
        }
    }

    modrinth {
        accessToken = providers.environmentVariable("MODRINTH_API_KEY")
        projectId = "ryfyOhoP"
        minecraftVersions.add("1.19.2")

        requires {
            // architectury api
            // id = "XV72M5Gg"
            slug = "architectury-api"
        }
        requires {
            slug = "hex-casting"
        }
        requires{
            // fabric api
            // id = "hfsU4hXq"
            slug = "fabric-api"
        }
        requires {
            slug = "wnboi"
        }
        optional{
            slug="trinkets"
        }
    }
}

Very possible that I just have something set up wrong somewhere but those look like api variables or something so, not sure

SamsTheNerd commented 11 months ago

oh it seems like it did upload? maybe that error was from it trying to upload twice or something ?