Skip to content

Commit

Permalink
config: add javadoc task in gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindavee committed May 4, 2021
1 parent 64beb0b commit 0ab3e76
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion xendit-java-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,19 @@ dependencies {
testImplementation group: "org.mockito", name: "mockito-core", version:"3.1.0"
}

task packageJavadoc(type: Jar, dependsOn: 'javadoc') {
from javadoc.destinationDir
classifier = 'javadoc'
}

task sourcesJar(type: Jar) {
from sourceSets.main.allJava
from sourceSets.main.allSource
classifier = 'sources'
}

artifacts {
archives sourcesJar
archives packageJavadoc
}

publishing {
Expand Down

0 comments on commit 0ab3e76

Please sign in to comment.