Skip to content

Commit 507c82f

Browse files
committed
Simplify root project after move to Antora
See gh-1009
1 parent 58e7310 commit 507c82f

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

build.gradle

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
plugins {
2-
id 'base'
3-
id 'maven-publish'
4-
id 'org.springframework.restdocs.conventions'
5-
}
6-
71
allprojects {
82
group = "org.springframework.restdocs"
93
repositories {
@@ -13,29 +7,3 @@ allprojects {
137
}
148
}
159
}
16-
17-
task api (type: Javadoc) {
18-
group = "Documentation"
19-
description = "Generates aggregated Javadoc API documentation."
20-
project.rootProject.gradle.projectsEvaluated {
21-
Set<String> excludedProjects = ['spring-restdocs-asciidoctor']
22-
Set<Project> publishedProjects = rootProject.subprojects.findAll { it != project}
23-
.findAll { it.plugins.hasPlugin(JavaPlugin) && it.plugins.hasPlugin(MavenPublishPlugin) }
24-
.findAll { !excludedProjects.contains(it.name) }
25-
dependsOn publishedProjects.javadoc
26-
source publishedProjects.javadoc.source
27-
classpath = project.files(publishedProjects.javadoc.classpath)
28-
destinationDir = project.file "${buildDir}/docs/javadoc"
29-
options {
30-
author = true
31-
docTitle = "Spring REST Docs ${project.version} API"
32-
encoding = "UTF-8"
33-
memberLevel = "protected"
34-
outputLevel = "quiet"
35-
source = "17"
36-
splitIndex = true
37-
use = true
38-
windowTitle = "Spring REST Docs ${project.version} API"
39-
}
40-
}
41-
}

0 commit comments

Comments
 (0)