Class SettingsVersionPlugin
java.lang.Object
io.github.joke.conventionalversion.SettingsVersionPlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.initialization.Settings>
public class SettingsVersionPlugin
extends Object
implements org.gradle.api.Plugin<org.gradle.api.initialization.Settings>
Settings mode: every project in the build is versioned, whether or not it takes part.
This is the mode that covers a whole build - projects with no build file, and projects included after the plugin is applied. Project mode covers only the projects that apply the plugin.
It calculates nothing. Registering ApplyProjectPlugin is the entire plugin: the version
a project ends up with is decided by ProjectVersionPlugin, the same code project mode runs,
so the level a build applies at cannot change the answer.
Registered directly rather than deferred to settingsEvaluated. A settings file may
include projects after applying the plugin, and beforeProject covers them regardless of
when it was registered, so there is nothing left to wait for.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SettingsVersionPlugin
public SettingsVersionPlugin()
-
-
Method Details
-
apply
public void apply(org.gradle.api.initialization.Settings settings) - Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.initialization.Settings>
-