Weird gradle behaviour - Sonatype Nexus Repository - Sonatype Community

Weird gradle behaviour

post by neil.richards on Dec 17, 2020

Neil Richardson

When executing a task to deploy a specific jar from a nexus maven repository it works from one version but not another.

The only difference seems to be a v at the start of one.

Both resolve in the browser.

Working!!! from this command gradle deployJar “-Dorg.gradle.java.home=$env:JAVA_HOME” “-PprojectVersion=2.0” --info --stacktrace

Not working from this command: gradle deployJar “-Dorg.gradle.java.home=$env:JAVA_HOME” “-PprojectVersion=v0.0.28” --info --stacktrace

On error it gives me the following to stdout:

Task :deployJar FAILED

FAILURE: Build failed with an exception.

Execution failed for task ‘:deployJar’.

Could not resolve all files for configuration ‘:searchjar’.

Could not find project-search.jar (project :).

1.0k views