Publish a fat javadoc jar to maven ()

* Publish a fat javadoc jar to maven

* Cleanup
This commit is contained in:
modmuss50 2020-02-10 17:05:41 +00:00 committed by GitHub
parent b7436ccac2
commit e9f5baeb11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,8 +118,17 @@ javadoc {
source( it.sourceSets.main.allJava.srcDirs)
}
classpath = sourceSets.main.compileClasspath
include ("**/api/**")
failOnError false
}
task javadocJar(type: Jar) {
from javadoc
//Set as `fatjavadoc` to prevent an ide form trying to use this javadoc, over using the modules javadoc
classifier = 'fatjavadoc'
}
build.dependsOn javadocJar
subprojects {
task remapMavenJar(type: Copy, dependsOn: remapJar) {
afterEvaluate {
@ -138,6 +147,7 @@ subprojects {
artifact(sourcesJar) {
builtBy remapSourcesJar
}
artifact javadocJar
}
}