gradle-master/subprojects/docs/src/snippets/bestPractices/taskDefinition/kotlin/buildSrc/src/main/java/com/enterprise/DocsGenerate.java
package com.enterprise;

import org.gradle.api.DefaultTask;
import org.gradle.api.file.DirectoryProperty;
import org.gradle.api.provider.Property;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.api.tasks.TaskAction;

public abstract class DocsGenerate extends DefaultTask {

    @Input
    public abstract Property<String> getTitle();

    @OutputDirectory
    public abstract DirectoryProperty getOutputDir();

    @TaskAction
    public void generate() {
        // generate documentation
    }
}
