From 573fb62dedc216f5214da3a72e7ecea7462c780e Mon Sep 17 00:00:00 2001 From: Quarris Date: Tue, 19 May 2020 23:32:45 +0100 Subject: [PATCH] Update build.gradle --- build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle b/build.gradle index c6ee18b..04b3d97 100644 --- a/build.gradle +++ b/build.gradle @@ -119,11 +119,18 @@ 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 { @@ -135,6 +142,10 @@ publishing { from components.java artifact deobfJar { + classifier 'deobf' + } + + artifact sourcesJar { classifier 'sources' }