mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 22:59:23 +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'
|
||||
|
||||
jar {
|
||||
|
||||
}
|
||||
|
||||
task deobfJar(type: Jar) {
|
||||
from sourceSets.main.output
|
||||
from sourceSets.main.java
|
||||
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 {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
artifact jar
|
||||
artifact apiJar
|
||||
artifact javadocJar
|
||||
artifact sourcesJar
|
||||
artifact deobfJar
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue