gradle-master/subprojects/docs/src/snippets/developingPlugins/pluginWithVariants/kotlin/src/gradle7/java/org/example/GreetingTask.java
package org.example;

import org.gradle.api.DefaultTask;
import org.gradle.api.tasks.TaskAction;

public class GreetingTask extends DefaultTask {
    @TaskAction
    public void greet() {
        System.out.println("Hello from Gradle 7+");
    }
}
