From ec5e38a7a489c6872e27d87653539422287fa370 Mon Sep 17 00:00:00 2001 From: Quarris Date: Tue, 19 May 2020 23:34:57 +0100 Subject: [PATCH] Update build.gradle (#121) * Update build.gradle * Update build.gradle --- build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle b/build.gradle index ae7725f0..857b1b3a 100644 --- a/build.gradle +++ b/build.gradle @@ -130,10 +130,17 @@ jar { task deobfJar(type: Jar) { from(sourceSets.main.output) + archiveName = "${baseName}-${version}-deobf.${extension}" +} + +task sourcesJar(type: Jar) { + from(sourceSets.main.allSource) archiveName = "${baseName}-${version}-sources.${extension}" } + artifacts { archives deobfJar + archives sourcesJar } publishing { @@ -145,6 +152,10 @@ publishing { from components.java artifact deobfJar { + classifier 'deobf' + } + + artifact sourcesJar { classifier 'sources' }