From d4a83ba627c64c62b349d8bee662fe290bfcd074 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Wed, 2 Aug 2023 00:23:32 -0700 Subject: [PATCH] Update build script to produce a sources jar at the same time as a normal jar --- build.gradle | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 0813fd4..90c7537 100644 --- a/build.gradle +++ b/build.gradle @@ -54,9 +54,8 @@ dependencies { def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword" task sourceJar(type: Jar) { - from sourceSets.main.output from sourceSets.main.allJava - archiveClassifier("sources") + archiveClassifier = "sources" manifest { attributes([ @@ -90,6 +89,6 @@ publishing { compileJava.finalizedBy("sourceJar") artifacts { - jar - sourceJar + archives jar + archives sourceJar } \ No newline at end of file