...
This commit is contained in:
parent
57ae86e9df
commit
ea5b9a3bc7
26
build.gradle
26
build.gradle
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue