io.freefair.gradle.plugins.maven.javadoc.LegacyAggregateJavadocPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-plugin Show documentation
Show all versions of maven-plugin Show documentation
Collection of Maven related Gradle plugins
package io.freefair.gradle.plugins.maven.javadoc;
import lombok.Getter;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.file.ConfigurableFileCollection;
import org.gradle.api.plugins.JavaBasePlugin;
import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.plugins.JavaPluginExtension;
import org.gradle.api.tasks.SourceSet;
import org.gradle.api.tasks.TaskProvider;
import org.gradle.api.tasks.javadoc.Javadoc;
import org.gradle.external.javadoc.StandardJavadocDocletOptions;
import java.io.File;
import java.util.Optional;
import java.util.concurrent.Callable;
@Getter
@Deprecated
public class LegacyAggregateJavadocPlugin implements Plugin {
private TaskProvider aggregateJavadoc;
private ConfigurableFileCollection aggregateClasspath;
@Override
public void apply(Project project) {
aggregateClasspath = project.files();
aggregateJavadoc = project.getTasks().register("aggregateJavadoc", Javadoc.class, aggregateJavadoc -> {
aggregateJavadoc.setGroup(JavaBasePlugin.DOCUMENTATION_GROUP);
aggregateJavadoc.getConventionMapping().map("destinationDir", new Callable
© 2015 - 2024 Weber Informatics LLC | Privacy Policy