modmuss50 / mod-publish-plugin

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

Issue with :publishModrinth #45

Closed Xelbayria closed 5 months ago

Xelbayria commented 5 months ago
* What went wrong:
Could not add entry ':publishModrinth' to cache executionHistory.bin (~\1.18.2\WoodGood\.gradle\7.4\executionHistory\executionHistory.bin).
> Cannot encode a null string.

I had no problem with Curseforge using dryRun. and I can't figure what's the problem with Modrinth??

My script is

    modrinth {
        projectId = "myprojectID" // i've included the id (shouldn't be an issue) 
        accessToken = providers.environmentVariable("MODRINTH_TOKEN")
        minecraftVersions.add("${minecraft_version}")
        requires("moonlight")
    }
modmuss50 commented 5 months ago

Please can you try with a newer Gradle version? 8.3 or later is what I test with.

Xelbayria commented 5 months ago

will test.

Xelbayria commented 5 months ago

ok i tested it with Gradle 8.3 and it's working. I was using 7.4. It's my first time using Gradle and mod-publish. Thanks for helping out.

one more thing i would like to know how to make Display name: MyMod-1.18.2-1.16.13 into Display name: ___

just blank.

nvm. I found what I was looking for in doc site. Have a good day!