Weird gradle behaviour - Sonatype Nexus Repository - Sonatype Community
Weird gradle behaviour
post by neil.richards on Dec 17, 2020
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.
- What went wrong:
Execution failed for task ‘:deployJar’.
Could not resolve all files for configuration ‘:searchjar’.
Could not find project-search.jar (project :).
1.0k views
New & Unread Topics
| Topic | Replies | Views | Activity |
|---|---|---|---|
| OSS NPM repo support | 1 | 105 | Aug 2025 |
| How to set up Cleanup Policies? | 2 | 158 | Aug 2025 |
| Maven repository proxy not caching artifacts? | 0 | 73 | Sep 2025 |
| Adding RHEL9 repos to Nexus | 6 | 490 | Nov 2025 |
| NuGet package publishing using API key | 3 | 314 | Aug 2025 |
Invalid date