Update build.gradle

This commit is contained in:
Quarris 2020-05-19 23:32:45 +01:00 committed by GitHub
parent 0c64e07c3d
commit 573fb62ded
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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