Allow overriding SNAPSHOT versions when pushing to maven

As far as I can tell, even -SNAPSHOT versions are immutable. Are there any environment variables, permissions, or etc that would allow re-publishing the same version and overriding? I want to use the maven.pkg.github.com and simply overwrite the version, like normally happens in other snapshots artifactories.

** PUT operation to URL https://maven.pkg.github.com/er1c/sbt-github/sbt-github-remote-cache/sbt-github-remote-cache_2.12/0.0.0-c4eb101ca7216d7f-SNAPSHOT/… failed with status code 409: ; Response Body: Error: “sbt-github-remote-cache_2.12-0.0.0-c4eb101ca7216d7f-SNAPSHOT-cachedcompile.jar” in version 0.0.0-c4eb101ca7216d7f-SNAPSHOT of “sbt-github-remote-cache.sbt-github-remote-cache_2.12” has already been published.**

[info] [error] (Test / pushRemoteCache) java.io.IOException: PUT operation to URL https://maven.pkg.github.com/er1c/sbt-github/sbt-github-remote-cache/sbt-github-remote-cache_2.12/0.0.0-b6feb8641ddec6f0-SNAPSHOT/sbt-github-remote-cache_2.12-0.0.0-b6feb8641ddec6f0-SNAPSHOT-cachedtest.jar failed with status code 409: ; Response Body: Error: "sbt-github-remote-cache_2.12-0.0.0-b6feb8641ddec6f0-SNAPSHOT-cachedtest.jar" in version 0.0.0-b6feb8641ddec6f0-SNAPSHOT of "sbt-github-remote-cache.sbt-github-remote-cache_2.12" has already been published.
[info] [error] (Compile / pushRemoteCache) java.io.IOException: PUT operation to URL https://maven.pkg.github.com/er1c/sbt-github/sbt-github-remote-cache/sbt-github-remote-cache_2.12/0.0.0-c4eb101ca7216d7f-SNAPSHOT/sbt-github-remote-cache_2.12-0.0.0-c4eb101ca7216d7f-SNAPSHOT-cachedcompile.jar failed with status code 409: ; Response Body: Error: "sbt-github-remote-cache_2.12-0.0.0-c4eb101ca7216d7f-SNAPSHOT-cachedcompile.jar" in version 0.0.0-c4eb101ca7216d7f-SNAPSHOT of "sbt-github-remote-cache.sbt-github-remote-cache_2.12" has already been published.
1 Like