Class CleanroomVersioningPlugin
java.lang.Object
com.cleanroommc.versioning.gradle.CleanroomVersioningPlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
public abstract class CleanroomVersioningPlugin
extends Object
implements org.gradle.api.Plugin<org.gradle.api.Project>
Sets
project.version from Git tags, branch policy, and the build environment.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of theVersioningExtension.static final StringThe plugin identifier.static final StringThe name of the task that prints the computed version. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PLUGIN_ID
The plugin identifier.- See Also:
-
EXTENSION_NAME
The name of theVersioningExtension.- See Also:
-
PRINT_VERSION_TASK
The name of the task that prints the computed version.- See Also:
-
-
Constructor Details
-
CleanroomVersioningPlugin
public CleanroomVersioningPlugin()
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) - Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-