mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
I think this is it :^)
This commit is contained in:
parent
66f3770c3c
commit
f28b9cccbb
1 changed files with 26 additions and 4 deletions
30
build.gradle
30
build.gradle
|
@ -73,20 +73,42 @@ processResources {
|
||||||
|
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
jar {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
task deobfJar(type: Jar) {
|
task deobfJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
from sourceSets.main.java
|
from sourceSets.main.java
|
||||||
classifier = 'dev'
|
classifier = 'dev'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task apiJar(type: Jar) {
|
||||||
|
from sourceSets.main.output
|
||||||
|
from sourceSets.main.java
|
||||||
|
classifier = 'api'
|
||||||
|
include 'de/ellpeck/naturesaura/api/**'
|
||||||
|
}
|
||||||
|
|
||||||
|
javadoc {
|
||||||
|
include 'de/ellpeck/naturesaura/api/**'
|
||||||
|
}
|
||||||
|
|
||||||
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
||||||
|
from 'build/docs/javadoc'
|
||||||
|
classifier 'javadoc'
|
||||||
|
}
|
||||||
|
|
||||||
|
task sourcesJar(type: Jar) {
|
||||||
|
from sourceSets.main.java
|
||||||
|
classifier = 'sources'
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
artifact jar
|
artifact jar
|
||||||
|
artifact apiJar
|
||||||
|
artifact javadocJar
|
||||||
|
artifact sourcesJar
|
||||||
artifact deobfJar
|
artifact deobfJar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue