Merge pull request #22 from Quarris/patch-1

Update build.gradle
This commit is contained in:
Ellpeck 2020-05-20 00:34:53 +02:00 committed by GitHub
commit b319df3b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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