MCPcopy Create free account
hub / github.com/diffplug/goomph / apply

Method apply

src/main/java/com/diffplug/gradle/ProjectPlugin.java:26–35  ·  view source on GitHub ↗
(Project project)

Source from the content-addressed store, hash-verified

24/** Base implementation of a Plugin which prevents double-application. */
25public abstract class ProjectPlugin implements Plugin<Project> {
26 @Override
27 public final void apply(Project project) {
28 // ensure we don't double-apply the plugin
29 if (project.getPlugins().hasPlugin(this.getClass())) {
30 return;
31 }
32 project.afterEvaluate(GoomphCacheLocations::initFromProject);
33 // apply the plugin once
34 applyOnce(project);
35 }
36
37 /** Plugin application, which is guaranteed to execute only once. */
38 protected abstract void applyOnce(Project project);

Callers 13

getPluginMethod · 0.80
satisfyMethod · 0.80
modifyMethod · 0.80
callMethod · 0.80
getResultMethod · 0.80
retryMethod · 0.80
modifyFileMethod · 0.80
execInternalMethod · 0.80
officialReleaseMaybeMethod · 0.80
createMethod · 0.80
configureMethod · 0.80
takeBndActionMethod · 0.80

Calls 1

applyOnceMethod · 0.95

Tested by

no test coverage detected