Include javadocs and sources in build

feat/data-edit-commands
William 2 years ago
parent 02c64a54c2
commit 12bac4011c

@ -56,7 +56,20 @@ subprojects {
destinationDirectory.set(file("$rootDir/target"))
archiveClassifier.set('')
}
jar.dependsOn shadowJar
if ('api'.contains(project.name)) {
java {
withSourcesJar()
withJavadocJar()
}
sourcesJar {
destinationDirectory.set(file("$rootDir/target"))
}
javadocJar {
destinationDirectory.set(file("$rootDir/target"))
}
shadowJar.dependsOn(sourcesJar, javadocJar)
}
jar.dependsOn(shadowJar)
clean.delete "$rootDir/target"
}
}

Loading…
Cancel
Save