-
I would like to share the following configuration on many projects with a custom plugin, any help is appreciated 😄
public class GradlePlugin implements Plugin<Project> {
public void apply(Project project) {
project.getPluginManager().apply(SpotBugsPlugin.class);
// Register a task
project.getTasks().register("greeting", task -> {
task.doLast(s -> System.out.println("Hello from plugin 'gradle.greeting'"));
});
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
Avi1235
Dec 13, 2021
Replies: 1 comment 2 replies
-
I'm not sure what the standalone plugin means. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got it using groovy was easier, this is what i wanted to do just didn't know how 😅