Created
October 28, 2019 16:47
-
-
Save entzik/6e3b1eec8dabc10eff8ccb2bc5cd1620 to your computer and use it in GitHub Desktop.
Tasks to build source and javadoc jars with gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks.register<Jar>("sourcesJar") { | |
archiveClassifier.set("sources") | |
from(sourceSets.main.get().allJava) | |
} | |
tasks.register<Jar>("javadocJar") { | |
archiveClassifier.set("javadoc") | |
from(tasks.javadoc.get().destinationDir) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment