Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@cloud-janitors-figure cloud-janitors-figure released this 26 Sep 12:32
· 1 commit to main since this release
9e0a718

Documentation

Detailed documentation of the plugin can be viewed at https://figuretechnologies.github.io/gradle-semver-plugin

Breaking changes

  • Plugin id changed from com.figure.gradle.semver-plugin to just com.figure.gradle.semver
  • The version and version tag output have been moved from build/semver/version.txt to build/semver/semver.properties
  • Removed all tasks
    • currentSemver - just invoke ./gradlew on its own to see the version
    • generateVersionFile - done automatically now
    • createAndPushVersionTag - use other methods to create and push version tags

v1 Problems Addressed

  • Inability to build without initializing git repository
  • Inability to build when merging, rebasing, reverting, bisecting, cherry-picking, and being in detached head state
  • Incorrect version calculation in some scenarios (this may have happened when remote branch was deleted but building on local branch)
  • Inability to set alternate initial version (the option was there but it didn't work)
  • Inability to build without an initial tag

Features Added

  • Support for stages (rc, beta, stable, SNAPSHOT, etc.)
  • Support for specifying alternate development and main branch names
  • Branching strategy inference
  • Support for building with build metadata (appends current date and time to the version)
  • Zero config support (in most cases, there's no need to do anything but apply the plugin)
  • Complete documentation to explain how to use the included and optional gradle properties

Full Changelog: v1.10.0...v2.0.0