added api jar artifact

This commit is contained in:
Ell 2020-10-17 23:23:21 +02:00
parent a24831320d
commit a703366890

View file

@ -140,9 +140,17 @@ task sourcesJar(type: Jar) {
archiveName = "${baseName}-${version}-sources.${extension}"
}
task apiJar(type: Jar) {
from(sourceSets.main.output)
from(sourceSets.main.java)
include("de/ellpeck/naturesaura/api/**")
archiveName = "${baseName}-${version}-api.${extension}"
}
artifacts {
archives deobfJar
archives sourcesJar
archives apiJar
}
publishing {
@ -156,10 +164,12 @@ publishing {
artifact deobfJar {
classifier 'deobf'
}
artifact sourcesJar {
classifier 'sources'
}
artifact apiJar {
classifier 'api'
}
pom.withXml {
def node = asNode()