mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-23 21:40:02 -04:00
Publish a fat javadoc jar to maven (#503)
* Publish a fat javadoc jar to maven * Cleanup
This commit is contained in:
parent
b7436ccac2
commit
e9f5baeb11
1 changed files with 10 additions and 0 deletions
10
build.gradle
10
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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue