Skip to content

Commit

Permalink
Add package-list
Browse files Browse the repository at this point in the history
Closes gh-9528
  • Loading branch information
jzheaux committed Apr 9, 2021
1 parent 65b3f67 commit 3641756
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import java.util.Set;
import java.util.regex.Pattern;

import org.gradle.api.Action;
import org.gradle.api.JavaVersion
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.plugins.JavaPluginConvention;
Expand All @@ -49,6 +50,16 @@ public class JavadocApiPlugin implements Plugin<Project> {

api.setGroup("Documentation");
api.setDescription("Generates aggregated Javadoc API documentation.");
api.doLast {
if (JavaVersion.current().isJava11Compatible()) {
project.copy({ copy -> copy
.from(api.destinationDir)
.into(api.destinationDir)
.include("element-list")
.rename("element-list", "package-list")
});
}
}

Set<Project> subprojects = rootProject.getSubprojects();
for (Project subproject : subprojects) {
Expand Down

0 comments on commit 3641756

Please sign in to comment.