This commit is contained in:
Adubbz 2014-01-19 13:42:01 +11:00
parent 57ae86e9df
commit ea5b9a3bc7
1 changed files with 25 additions and 1 deletions

View File

@ -17,7 +17,11 @@ buildscript {
}
configurations {
deployJars
deployJars {
archives sourceJar
archives deobfJar
archives apiJar
}
}
apply plugin: "maven"
@ -118,6 +122,26 @@ task createChangelog(type: ChangelogTask) {
tasks.build.dependsOn('createChangelog')
// add a source jar
task sourceJar(type: Jar) {
from sourceSets.main.allSource
appendix = 'src'
}
task apiJar(type: Jar) {
from(sourceSets.main.java)
{
include "biomesoplenty/api/*"
}
appendix = 'api'
}
// because the normal output has been made to be obfuscated
task deobfJar(type: Jar) {
from sourceSets.main.output
appendix = 'deobf'
}
uploadArchives {
repositories {
add getProject().repositories.mavenLocal()