Add javadoc

This commit is contained in:
NotMyFault 2019-05-02 19:49:10 +02:00
parent e1a62156c2
commit 4879e0b62a
3 changed files with 22 additions and 1 deletions

1
.gitignore vendored
View File

@ -35,3 +35,4 @@ wiki_permissions.md
/textures /textures
*.iml *.iml
/obj /obj
docs/

View File

@ -20,10 +20,12 @@ It is available for Bukkit, Forge, Sponge and Nukkit.
### <1.12.2 ### <1.12.2
* [Download](https://empcraft.com/fawe/download/?bukkit) * [Download](https://empcraft.com/fawe/download/?bukkit)
* [Jenkins](https://ci.athion.net/job/FastAsyncWorldEdit/) * [Jenkins](https://ci.athion.net/job/FastAsyncWorldEdit/)
* [JavaDoc](https://ci.athion.net/job/FastAsyncWorldEdit/javadoc/)
### 1.13+ ### 1.13+
* [Download](https://empcraft.com/fawe/download/?bukkit113) * [Download](https://empcraft.com/fawe/download/?bukkit113)
* [Jenkins](https://ci.athion.net/job/FastAsyncWorldEdit-1.13/) * [Jenkins](https://ci.athion.net/job/FastAsyncWorldEdit-1.13/)
* [JavaDoc](https://ci.athion.net/job/FastAsyncWorldEdit-1.13/javadoc/)
* [Repository](https://github.com/IntellectualSites/FastAsyncWorldEdit-1.13) * [Repository](https://github.com/IntellectualSites/FastAsyncWorldEdit-1.13)
## Developer Resources ## Developer Resources

View File

@ -75,7 +75,7 @@ ext {
version = date + revision + buildNumber + semver version = date + revision + buildNumber + semver
if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion
version = "unknown"; version = "unknown"
} }
description = """FastAsyncWorldEdit""" description = """FastAsyncWorldEdit"""
@ -113,3 +113,21 @@ subprojects {
maven {url "https://store.ttyh.ru/libraries/"} maven {url "https://store.ttyh.ru/libraries/"}
} }
} }
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')
delete "./docs"
subprojects.each { proj ->
proj.tasks.withType(Javadoc).each { javadocTask ->
source += javadocTask.source
classpath += javadocTask.classpath
excludes += javadocTask.excludes
includes += javadocTask.includes
}
}
}