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}" 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 { artifacts {
archives deobfJar archives deobfJar
archives sourcesJar archives sourcesJar
archives apiJar
} }
publishing { publishing {
@ -156,10 +164,12 @@ publishing {
artifact deobfJar { artifact deobfJar {
classifier 'deobf' classifier 'deobf'
} }
artifact sourcesJar { artifact sourcesJar {
classifier 'sources' classifier 'sources'
} }
artifact apiJar {
classifier 'api'
}
pom.withXml { pom.withXml {
def node = asNode() def node = asNode()