diff --git a/build.gradle b/build.gradle index cca17e0df..9f849280f 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } }