Package dev.rafandoo.versioning
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
VersioningExtensionto expose the project's current version. - Registers version increment tasks (major, minor, patch, RC, release).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.gradle.api.Project project) Applies the plugin to the given project.
-
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
VersioningExtensionand all versioning tasks.- Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>- Parameters:
project- the Gradle project to which the plugin is applied
-