Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/main/java/io/spring/gradle/javadoc/JavadocPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,19 @@
*/
public class JavadocPlugin implements Plugin<Project> {

/**
* A configuration producing the sources that will be used for the aggregate Javadoc
* task.
*/
public static final String JAVADOC_SOURCES_ELEMENTS_CONFIGURATION_NAME = "javadocSourcesElements";

@Override
public void apply(Project project) {
project.getPlugins().withType(JavaPlugin.class).all((javaPlugin) -> withSourcesElements(project));
}

private void withSourcesElements(Project project) {
project.getConfigurations().create("sourcesElements", new Action<Configuration>() {
project.getConfigurations().create(JAVADOC_SOURCES_ELEMENTS_CONFIGURATION_NAME, new Action<Configuration>() {
@Override
public void execute(Configuration config) {
config.setCanBeResolved(false);
Expand Down