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