From 193ac1bfa63669d6f26f0805fab4df93cc11d05c Mon Sep 17 00:00:00 2001 From: Anant Aneja <1797669+aaneja@users.noreply.github.com> Date: Fri, 21 Feb 2025 12:21:02 +0530 Subject: [PATCH] Include sources and javadoc jars --- build.gradle | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/build.gradle b/build.gradle index 28c5f137..deff4b56 100644 --- a/build.gradle +++ b/build.gradle @@ -113,7 +113,7 @@ ext.tempto_runner = project(':tempto-runner') ext.tempto_ldap = project(':tempto-ldap') ext.tempto_kafka = project(':tempto-kafka') ext.expected_result_generator = project(':expected-result-generator') -ext.tempto_version = '1.55-SNAPSHOT' +ext.tempto_version = '1.54-SNAPSHOT' ext.tempto_group = "io.prestodb.tempto" ext.isReleaseVersion = !tempto_version.endsWith("SNAPSHOT") @@ -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 {