Replace defunct JCenter with Maven Central #22
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following up on #12 and #14, this PR should complete the work of publishing RR as a reusable library.
As JCenter was turned into a read-only archive in 2021, RR needs a new distribution repository. Using Maven Central has the added benefit that developers will not have to configure anything to consume the artifact, but just add a dependency to their project. The standard way to do this is to use Sonatype OSSRH (OSS Repository Hosting).
With this PR, the build should set all fields required by the OSSRH guidelines. The approach taken is based on this article.
Before merging this, do the following:
releaseRepo
andsnapshotRepo
in the Gradle file accordingly.signing.keyId
,signing.password
andsigning.secretKeyRingFile
) and OSSRH (ossrhUsername
andossrhPassword
) into~/.gradle/gradle.properties
.After merging this, you should be able to publish a
master
build (non-snapshot versions) to OSSRH's Nexus. There, you can log in, find the staging repository for your build and trigger the release process which includes automated requirements validation. If successful, the build will be propagated to Maven Central in a matter of hours.Let me know if you need any assistance with this.