create fat api jar
This commit is contained in:
parent
e26af22ef4
commit
d5f2115506
@ -32,7 +32,24 @@ minecraft {
|
||||
mappings channel: mcp_channel, version: mcp_version
|
||||
}
|
||||
|
||||
task deobfApiJar(type: Jar) {
|
||||
duplicatesStrategy = "EXCLUDE"
|
||||
from("$buildDir/classes/java/main")
|
||||
from(fileTree(project(":Noise2D").buildDir.getPath() + "/classes/java/main"))
|
||||
from(fileTree(project(":FeatureManager").buildDir.getPath() + "/classes/java/main"))
|
||||
from(fileTree(project(":TerraForgedCore").buildDir.getPath() + "/classes/java/main"))
|
||||
}
|
||||
|
||||
jar {
|
||||
enabled(false)
|
||||
}
|
||||
|
||||
install {
|
||||
dependsOn(deobfApiJar)
|
||||
}
|
||||
|
||||
uploadArchives {
|
||||
dependsOn(deobfApiJar)
|
||||
repositories {
|
||||
mavenDeployer {
|
||||
repository(url: "https://io.terraforged.com/repository/maven/") {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit e0129220f77b071cce27bfb37ef8103e1a194230
|
||||
Subproject commit 2e18fe66d631773288b1e27db0246514ce74d681
|
10
build.gradle
10
build.gradle
@ -1,15 +1,7 @@
|
||||
allprojects {
|
||||
apply plugin: "java"
|
||||
group = "com.terraforged"
|
||||
version = "${version}${getBuildNumber()}"
|
||||
version = "${version}"
|
||||
}
|
||||
|
||||
jar.enabled(false)
|
||||
|
||||
static def getBuildNumber() {
|
||||
def buildNumber = System.getenv("BUILD_NUMBER")
|
||||
if (buildNumber == null) {
|
||||
return ""
|
||||
}
|
||||
return "-${buildNumber}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user