From a5e5157d2afee03f973cf087b5b620ea9fce8df5 Mon Sep 17 00:00:00 2001 From: Anant Aneja <1797669+aaneja@users.noreply.github.com> Date: Fri, 21 Feb 2025 13:28:31 +0530 Subject: [PATCH] Include sources and javadoc jars (#290) --- build.gradle | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/build.gradle b/build.gradle index 9789f6db..deff4b56 100644 --- a/build.gradle +++ b/build.gradle @@ -143,22 +143,13 @@ configure(subprojects - expected_result_generator - tempto_examples) { apply plugin: 'java' apply plugin: 'maven-publish' - // plugins configuration javadoc { failOnError = true } - // javadoc.jar generation - task javadocJar(type: Jar) { - archiveClassifier.set('javadoc') - from(javadoc) - } - - - // sources.jar generation - task sourcesJar(type: Jar) { - archiveClassifier.set('sources') - from(sourceSets.main.allJava) + java { + withJavadocJar() + withSourcesJar() } signing { @@ -166,10 +157,6 @@ configure(subprojects - expected_result_generator - tempto_examples) { sign configurations.archives } - artifacts { - archives javadocJar, sourcesJar - } - // publishing to sonatype publishing {