mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +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}"
|
||||
}
|
||||
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue