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:

  • release when building with a tag
  • rc when the version's prerelease segment begins with rc
  • integration when the version's prerelease segment begins with dev
  • misc the rest of the time (dependencies are unlikely to use latest.misc)

The necessary Gradle API is since 4.9, so the plugin's wrapper would need updating a bit.