Update build.gradle

This commit is contained in:
Quarris 2020-05-19 23:34:18 +01:00 committed by GitHub
parent c0e130bdfd
commit f74a348a40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,11 +129,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 {
@ -145,6 +152,10 @@ publishing {
from components.java
artifact deobfJar {
classifier 'deobf'
}
artifact sourcesJar {
classifier 'sources'
}