diff --git a/build.gradle b/build.gradle index f601877380..c5bc3c5eae 100644 --- a/build.gradle +++ b/build.gradle @@ -155,6 +155,16 @@ jar { } } + +task sourcesJar(type: Jar) { + archiveClassifier.set('sources') + from sourceSets.main.allJava +} + +artifacts { + archives sourcesJar +} + jar.finalizedBy('reobfJar') reobf.create('jarJar')