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' }