I think this is it :^)

This commit is contained in:
Ellpeck 2018-11-23 15:40:30 +01:00
parent 66f3770c3c
commit f28b9cccbb

View file

@ -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
}
}