Changed publishing IP now i get an error


When I run ./gradlew publish --info

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':publishMavenPublicationToNexusRepository'.
> Failed to publish publication 'maven' to repository 'nexus'
   > Could not PUT 'http://167.99.236.170:8081/repository/Exercise6Maven/com/example/my-app/1.0-SNAPSHOT/maven-metadata.xml'. Received status code 400 from server: Repository version policy: RELEASE does not allow metadata in path: com/example/my-app/1.0-SNAPSHOT/maven-metadata.xml

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
2 actionable tasks: 2 executed
Some of the file system contents retained in the virtual file system are on file systems that Gradle doesn't support watching. The relevant state was discarded to ensure changes to these locations are properly detected. You can override this by explicitly enabling file system watching.
Watching 1 directories to track changes

What do you mean by “Changed publishing IP” and why do you assume this is a Gradle issue?

According to your output, you try to publish a SNAPSHOT version to a Nexus repository that is configured to only allow release versions and thus refuses to accept the snapshot version.

I was able to publish to a repo called maven-snapshots (this makes sense with what Björn told me). So this is a configuration error pertaining to the type of rep Im uploading to. Thank you