deobf fat api jar

This commit is contained in:
dags- 2020-02-26 11:30:37 +00:00
parent 1db329c8f5
commit dae4689c34

View File

@ -32,19 +32,23 @@ minecraft {
mappings channel: mcp_channel, version: mcp_version mappings channel: mcp_channel, version: mcp_version
} }
task deobfApiJar(type: Jar) { task deobfApiJar(type: Jar, dependsOn: classes) {
classifier = "deobf" classifier = "deobf"
duplicatesStrategy = "EXCLUDE" duplicatesStrategy = "EXCLUDE"
from("$buildDir/classes/java/main") from("$buildDir/classes/java/main")
from(fileTree(project(":Noise2D").buildDir.getPath() + "/classes/java/main")) from(project(":Noise2D").buildDir.getPath() + "/classes/java/main")
from(fileTree(project(":FeatureManager").buildDir.getPath() + "/classes/java/main")) from(project(":FeatureManager").buildDir.getPath() + "/classes/java/main")
from(fileTree(project(":TerraForgedCore").buildDir.getPath() + "/classes/java/main")) from(project(":TerraForgedCore").buildDir.getPath() + "/classes/java/main")
} }
jar { jar {
dependsOn(deobfApiJar) dependsOn(deobfApiJar)
} }
artifacts{
archives deobfApiJar
}
uploadArchives { uploadArchives {
repositories { repositories {
mavenDeployer { mavenDeployer {