How to resume incomplete Maven publication

I have a Gradle Kotlin project with plenty of subprojects and tried to publish it to GitHub Packages for the first time. The publication process failed midway due to a network error, something which is not uncommon.

Now it seems to be impossible to resume the process to complete the publication. I keep getting 409 Conflict responses because Gradle tries to re-upload some packages that have already been published to GitHub Packages successfully.

How can I make the publication process reliable?

I either need to be able to overwrite existing packages or resume an incomplete publication process. And that without any manual work involved.



There isn’t a way to resume incomplete publishes, but you should be able to re-publish if you delete the incomplete version.

You can read about deleting package versions here:

Please let me know if this continues to be a problem!