mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Generate javadoc with aggregatedJavadocs option
This commit is contained in:
parent
eb9d98d289
commit
e156d58769
3
.gitignore
vendored
3
.gitignore
vendored
@ -139,4 +139,5 @@ checkstyle.xml
|
|||||||
classes/
|
classes/
|
||||||
p2error.txt
|
p2error.txt
|
||||||
*.bat
|
*.bat
|
||||||
Nukkit/build/resources/main/plugin.yml
|
Nukkit/build/resources/main/plugin.yml
|
||||||
|
docs/
|
||||||
|
19
build.gradle
19
build.gradle
@ -48,6 +48,8 @@ version = String.format("%s.%s", rootVersion, buildNumber)
|
|||||||
|
|
||||||
description = rootProject.name
|
description = rootProject.name
|
||||||
|
|
||||||
|
delete "./docs"
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
@ -85,3 +87,20 @@ subprojects {
|
|||||||
maven { url 'https://jitpack.io' }
|
maven { url 'https://jitpack.io' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task aggregatedJavadocs(type: Javadoc, description: 'Generate javadocs from all child projects as if it was a single project', group: 'Documentation') {
|
||||||
|
destinationDir = file("./docs/javadoc")
|
||||||
|
title = "$project.name $version API"
|
||||||
|
options.author true
|
||||||
|
options.links 'http://docs.spring.io/spring/docs/4.3.x/javadoc-api/', 'http://docs.oracle.com/javase/8/docs/api/', 'http://docs.spring.io/spring-ws/docs/2.3.0.RELEASE/api/', 'http://docs.spring.io/spring-security/site/docs/4.0.4.RELEASE/apidocs/'
|
||||||
|
options.addStringOption('Xdoclint:none', '-quiet')
|
||||||
|
|
||||||
|
subprojects.each { proj ->
|
||||||
|
proj.tasks.withType(Javadoc).each { javadocTask ->
|
||||||
|
source += javadocTask.source
|
||||||
|
classpath += javadocTask.classpath
|
||||||
|
excludes += javadocTask.excludes
|
||||||
|
includes += javadocTask.includes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user