We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3061c7 commit 9f288e4Copy full SHA for 9f288e4
build.gradle
@@ -158,10 +158,20 @@ jar {
158
159
jar.finalizedBy('reobfJar')
160
161
+task sourceJar(type: Jar) {
162
+ archiveClassifier.set('sources')
163
+ from sourceSets.main.allJava
164
+}
165
+
166
+artifacts {
167
+ archives sourceJar
168
169
170
publishing {
171
publications {
172
mavenJava(MavenPublication) {
173
artifact jar
174
+ artifact sourceJar
175
}
176
177
repositories {
0 commit comments