Skip to content

v2.0.1

Latest
Compare
Choose a tag to compare
@cloud-janitors-figure cloud-janitors-figure released this 16 Oct 19:25
· 3 commits to main since this release
d431764

Documentation

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

Important

Is is recommended to use v2.0.1 over v2.0.0 due to a critical bug fix for GitHub Actions.

Breaking changes since v1

  • 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 Since v1

  • 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

What's Changed

📦 Dependency Updates

  • chore(deps): update dependency com.autonomousapps.dependency-analysis from 2.0.2 to 2.1.0 by @figure-renovate in #154

🐛 Bug Fixes

Full Changelog: v2.0.0...v2.0.1