From 3491ebc82dd6876b2c62c84d631e4f40fd66e8c8 Mon Sep 17 00:00:00 2001 From: "Lisa S. Wellman" Date: Fri, 10 Sep 2021 07:09:31 -0500 Subject: [PATCH] add back javadoc Signed-off-by: Lisa S. Wellman --- build.gradle | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 174dc31b..b578f3da 100644 --- a/build.gradle +++ b/build.gradle @@ -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