diff --git a/build.gradle b/build.gradle index 0843e00..04b3d97 100644 --- a/build.gradle +++ b/build.gradle @@ -120,10 +120,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 { @@ -135,6 +142,10 @@ publishing { from components.java artifact deobfJar { + classifier 'deobf' + } + + artifact sourcesJar { classifier 'sources' }