gradle-nexus-staging-plugin | Automatize releasing Gradle projects to Maven Central | Continous Integration library
kandi X-RAY | gradle-nexus-staging-plugin Summary
kandi X-RAY | gradle-nexus-staging-plugin Summary
A gradle plugin providing tasks to close and promote/release staged repositories. It allows to do a full artifacts release to Maven Central through Sonatype OSSRH (Open Source Software Repository Hosting) without the need to use Nexus GUI (to close and release artifacts/repository).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gradle-nexus-staging-plugin
gradle-nexus-staging-plugin Key Features
gradle-nexus-staging-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on gradle-nexus-staging-plugin
QUESTION
I have an open source project that hooks to travis-ci.org and that builds with gradle.
This project uses the gradle maven plugin to upload release artifacts to oss.sonatype.org using the uploadArchives target. What usually happens is that this target creates a single staging repository in Sonatype, then the Gradle nexus staging plugin promotes the repository and it shows up in Maven Central a few minutes later.
However, recently, the uploadArchives target started creating multiple staging repositories, each with a partial subset of the artifacts needed; and that happens only when run in Travis, not when I try from a laptop.
What am I missing here, which makes it work locally when running ./gradlew uploadArchives
, but fail in Travis?
A few links which might help:
...ANSWER
Answered 2018-Oct-15 at 21:47In the end it appears this is a common error that started appearing this year. Travis VMs with sudo: enabled
or docker will change IP addresses between artifact uploads and this will prompt Sonatype to think those artifacts belong to different repositories. Adding this to my travis.yml
fixed it:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gradle-nexus-staging-plugin
The plugin itself does not upload any artifacts. It only closes/promotes a repository with all already uploaded using the maven or maven-publish plugin artifacts (in the same or previous Gradle execution). Therefore it is enough to apply io.codearte.nexus-staging only on the root project in a multi-project build.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page