Skip to content

Commit

Permalink
add back javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: Lisa S. Wellman <peace@us.ibm.com>
  • Loading branch information
LisaWellman committed Sep 10, 2021
1 parent a8f1b6a commit 3491ebc
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,34 @@ publishing {
}
}

java {
withSourcesJar()
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
}

artifacts {
archives sourcesJar
archives javadocJar
}


publishing {
publications {
mavenPublication(MavenPublication) {
from components.java

artifact sourcesJar {
classifier "sources"
}

artifact javadocJar {
classifier "javadoc"
}
groupId = group
artifactId 'hl7v2-fhir-converter'
version = version
Expand Down

0 comments on commit 3491ebc

Please sign in to comment.