Set a custom status rule
Newer Gradle versions allow you to set the status of components that you publish. The status (defaulting to release) is published in Gradle Module Metadata and allows downstream builds to get correct results from dependencies with latest.integration, latest.release etc.
The semver-ci plugin seems very well placed to set up a custom status scheme where statuses match version types. For example:
-
releasewhen building with a tag -
rcwhen the version's prerelease segment begins withrc -
integrationwhen the version's prerelease segment begins withdev -
miscthe rest of the time (dependencies are unlikely to uselatest.misc)
The necessary Gradle API is since 4.9, so the plugin's wrapper would need updating a bit.