From a578afa5c89c3f9a122fa88e6fb4603c1cff12e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Er=C5=91s?= Date: Wed, 30 Oct 2024 06:43:02 +0100 Subject: [PATCH] build fixes for RC6 --- build.gradle | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 49159ba..0a1ac25 100644 --- a/build.gradle +++ b/build.gradle @@ -64,6 +64,16 @@ sonarqube { } } +task sourcesJar(type: Jar, dependsOn: classes) { + archiveClassifier = 'sources' + from sourceSets.main.allSource +} + +task javadocJar(type: Jar) { + archiveClassifier = 'javadoc' + from javadoc.destinationDir +} + publishing { publications { mavenJava(MavenPublication) { @@ -75,6 +85,8 @@ publishing { version = project.version from components.java + artifact sourcesJar + artifact javadocJar pom { name = project.name description = project.description @@ -101,16 +113,6 @@ publishing { } } -task sourcesJar(type: Jar, dependsOn: classes) { - archiveClassifier = 'sources' - from sourceSets.main.allSource -} - -task javadocJar(type: Jar) { - archiveClassifier = 'javadoc' - from javadoc.destinationDir -} - tasks.withType(Sign) { onlyIf { !version.endsWith("SNAPSHOT") } }