public final class PlugableProject extends java.lang.Object implements PluginTarget, io.spine.logging.Logging
PluginTarget
based on a Gradle Project
.Constructor and Description |
---|
PlugableProject(org.gradle.api.Project project) |
Modifier and Type | Method and Description |
---|---|
void |
apply(GradlePlugin<?> plugin)
Applies the given plugin.
|
void |
apply(PluginScript pluginScript)
Applies the given plugin script.
|
boolean |
isApplied(GradlePlugin<?> plugin)
Checks if the given plugin is already applied.
|
<P extends org.gradle.api.Plugin<org.gradle.api.Project>> |
with(GradlePlugin<P> pluginType,
java.util.function.Consumer<P> action)
Executes the given
action if the given plugin is applied. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isNotApplied
public <P extends org.gradle.api.Plugin<org.gradle.api.Project>> void with(GradlePlugin<P> pluginType, java.util.function.Consumer<P> action)
PluginTarget
action
if the given plugin is applied.
If the plugin is already applied, the action is executed at once. If the plugin is NOT applied, the action is only executed when and it the plugin will be applied.
with
in interface PluginTarget
pluginType
- the trigger pluginaction
- the action to executepublic void apply(GradlePlugin<?> plugin)
PluginTarget
apply
in interface PluginTarget
public void apply(PluginScript pluginScript)
PluginTarget
apply
in interface PluginTarget
public boolean isApplied(GradlePlugin<?> plugin)
PluginTarget
isApplied
in interface PluginTarget