Package net.kyori.mammoth
Interface ProjectOrSettingsPlugin
-
- All Superinterfaces:
org.gradle.api.Plugin<java.lang.Object>
public interface ProjectOrSettingsPlugin extends org.gradle.api.Plugin<java.lang.Object>A plugin that can be applied to either aProjectorSettings.- Since:
- 1.3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidapply(@NotNull java.lang.Object target)voidapplyToProject(@NotNull org.gradle.api.Project target, @NotNull org.gradle.api.plugins.PluginContainer plugins, @NotNull org.gradle.api.plugins.ExtensionContainer extensions, @NotNull org.gradle.api.tasks.TaskContainer tasks)Called when this plugin is applied to aProjectinstance.voidapplyToSettings(@NotNull org.gradle.api.initialization.Settings target, @NotNull org.gradle.api.plugins.PluginContainer plugins, @NotNull org.gradle.api.plugins.ExtensionContainer extensions)Called when this plugin is applied to aSettingsinstance.default booleanisAppliedToSettingsOf(@NotNull org.gradle.api.Project project)Determine if this plugin has been applied to theSettingsinstance associated with a particular project.default @Nullable org.gradle.util.GradleVersionminimumGradleVersion()Return a minimum Gradle version required to use this plugin.
-
-
-
Method Detail
-
apply
default void apply(@NotNull @NotNull java.lang.Object target)- Specified by:
applyin interfaceorg.gradle.api.Plugin<java.lang.Object>
-
applyToProject
void applyToProject(@NotNull @NotNull org.gradle.api.Project target, @NotNull @NotNull org.gradle.api.plugins.PluginContainer plugins, @NotNull @NotNull org.gradle.api.plugins.ExtensionContainer extensions, @NotNull @NotNull org.gradle.api.tasks.TaskContainer tasks)Called when this plugin is applied to aProjectinstance.- Parameters:
target- the project this plugin is being applied toplugins- the plugin containerextensions- the extension containertasks- the task container- Since:
- 1.3.0
-
applyToSettings
void applyToSettings(@NotNull @NotNull org.gradle.api.initialization.Settings target, @NotNull @NotNull org.gradle.api.plugins.PluginContainer plugins, @NotNull @NotNull org.gradle.api.plugins.ExtensionContainer extensions)Called when this plugin is applied to aSettingsinstance.- Parameters:
target- the settings this plugin is being applied toplugins- the plugin containerextensions- the extension container- Since:
- 1.3.0
-
minimumGradleVersion
@Nullable default @Nullable org.gradle.util.GradleVersion minimumGradleVersion()
Return a minimum Gradle version required to use this plugin.- Returns:
- the minimum required version
- Since:
- 1.2.0
-
isAppliedToSettingsOf
default boolean isAppliedToSettingsOf(@NotNull @NotNull org.gradle.api.Project project)Determine if this plugin has been applied to theSettingsinstance associated with a particular project.- Parameters:
project- the project to test- Returns:
- whether the Settings that created the provided project has this plugin applied
- Since:
- 1.3.0
-
-