Class VersioningPlugin

java.lang.Object
dev.rafandoo.versioning.VersioningPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class VersioningPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Gradle plugin that provides semantic versioning support for a project.

This plugin:

  • Registers a VersioningExtension to expose the project's current version.
  • Registers version increment tasks (major, minor, patch, RC, release).
  • Constructor Details

    • VersioningPlugin

      public VersioningPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Applies the plugin to the given project.

      This method registers the VersioningExtension and all versioning tasks.

      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>
      Parameters:
      project - the Gradle project to which the plugin is applied