20 lines
494 B
Java
20 lines
494 B
Java
/*
|
|
* This source file was generated by the Gradle 'init' task
|
|
*/
|
|
package org.example;
|
|
|
|
import org.gradle.api.Project;
|
|
import org.gradle.api.Plugin;
|
|
|
|
/**
|
|
* A simple 'hello world' plugin.
|
|
*/
|
|
public class Y9BuildLogicPlugin implements Plugin<Project> {
|
|
public void apply(Project project) {
|
|
// Register a task
|
|
project.getTasks().register("greeting", task -> {
|
|
task.doLast(s -> System.out.println("Hello from plugin 'org.example.greeting'"));
|
|
});
|
|
}
|
|
}
|