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

Fails to publish to modrinth #36

Closed IThundxr closed 7 months ago

IThundxr commented 7 months ago

Using forgix here but the error doesnt sit right with me since that fabric.mod.json still exists in their, asked modrinth support and they told me to report it here

* What went wrong:
Execution failed for task ':publishModrinth'.
> A failure occurred while executing me.modmuss50.mpp.platforms.modrinth.Modrinth$UploadWorkAction
   > Request failed, status: 400 message: Error with multipart data: No fabric.mod.json present for Fabric file.
   forgix {
    group = maven_group
    mergedJarName = "${archives_base_name}-${mod_version}+mc${minecraft_version}.jar"
    outputDir = "build/libs/Merged"

    fabric {
        projectName = "fabric"
        jarLocation = "build/libs/${archives_base_name}-${mod_version}.jar"
    }

    custom {
        projectName = "neoforge"
        jarLocation = "build/libs/${archives_base_name}-${mod_version}.jar"
    }
}

publishMods {
    displayName = "Old MC Logo v${mod_version} for mc${minecraft_version}"
    version = "${mod_version}-mc${minecraft_version}"
    file = file("build/libs/Merged/${archives_base_name}-${mod_version}+mc${minecraft_version}.jar")
    changelog = ChangelogText.getChangelogText(project)
    type = STABLE
    modLoaders.add("fabric")
    modLoaders.add("quilt")
    modLoaders.add("neoforge")

    curseforge {
        projectId = curseforge_id
        accessToken = providers.environmentVariable("CURSEFORGE_TOKEN")
        minecraftVersions.add(minecraft_version)
    }

    modrinth {
        projectId = modrinth_id
        accessToken = providers.environmentVariable("MODRINTH_TOKEN")
        minecraftVersions.add(minecraft_version)
    }
}
IThundxr commented 7 months ago

issue was forgix :ioa: