Update build.gradle (#121)

* Update build.gradle

* Update build.gradle
This commit is contained in:
Quarris 2020-05-19 23:34:57 +01:00 committed by GitHub
parent d1f4b1b1c0
commit ec5e38a7a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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