mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
added api jar artifact
This commit is contained in:
parent
a24831320d
commit
a703366890
1 changed files with 11 additions and 1 deletions
12
build.gradle
12
build.gradle
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue