Skip to content

Commit 245bc31

Browse files
committed
Remove redundant api task from docs project
1 parent b5f9aef commit 245bc31

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

docs/build.gradle

-35
Original file line numberDiff line numberDiff line change
@@ -50,38 +50,3 @@ asciidoctor {
5050
"branch-or-tag": project.version.endsWith("SNAPSHOT") ? "main": "v${project.version}"
5151
inputs.files(sourceSets.test.java)
5252
}
53-
54-
task api (type: Javadoc) {
55-
group = "Documentation"
56-
description = "Generates aggregated Javadoc API documentation."
57-
dependsOn {
58-
subprojects.collect {
59-
it.tasks.getByName("jar")
60-
}
61-
}
62-
project.rootProject.gradle.projectsEvaluated {
63-
Set<String> excludedProjects = ['spring-restdocs-asciidoctor']
64-
Set<Project> publishedProjects = rootProject.subprojects.findAll { it != project}
65-
.findAll { it.plugins.hasPlugin(JavaPlugin) && it.plugins.hasPlugin(MavenPublishPlugin) }
66-
.findAll { !excludedProjects.contains(it.name) }
67-
dependsOn publishedProjects.javadoc
68-
source publishedProjects.javadoc.source
69-
classpath = project.files(publishedProjects.javadoc.classpath)
70-
destinationDir = project.file "${buildDir}/docs/javadoc"
71-
options {
72-
author = true
73-
docTitle = "Spring REST Docs ${project.version} API"
74-
encoding = "UTF-8"
75-
memberLevel = "protected"
76-
outputLevel = "quiet"
77-
source = "1.8"
78-
splitIndex = true
79-
stylesheetFile = file("src/main/javadoc/spring-javadoc.css")
80-
use = true
81-
windowTitle = "Spring REST Docs ${project.version} API"
82-
}
83-
}
84-
85-
destinationDir = new File(buildDir, "api")
86-
}
87-

0 commit comments

Comments
 (0)