I'm publishing a kotlin multiplatform project to Google's artifact registry using their Gradle plugin, publishing both the Kotlin and JVM source sets.
Every time I publish a new version, Gradle throws the following error:
Could not PUT 'https://europe-west1-maven.pkg.dev/***/***/***/***/***/2.0.0/sdk-2.0.0.jar'. Received status code 400 from server: Bad Request
Weirdly though, both packages do get uploaded to artifact registry, and I'm able to pull them in different projects just fine.
I assumed this was a bug in the Gradle plugin, but this has been going on for over a year now with multiple updates so I don't think that's the case.
Am I doing something wrong? Anyone else having this issue? Or is this maybe really a bug in the plugin.