perf: 优化依赖大小
This commit is contained in:
@@ -60,6 +60,7 @@ tasks {
|
||||
archiveClassifier = "Java8"
|
||||
from(project.configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
|
||||
from(processResources.get().outputs)
|
||||
from(jar.get().outputs)
|
||||
from(shadeJava8.map { if (it.isDirectory) it else zipTree(it) })
|
||||
destinationDirectory = rootProject.layout.buildDirectory
|
||||
relocate("de.tr7zw.changeme.nbtapi", "cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi")
|
||||
|
@@ -57,6 +57,7 @@ tasks {
|
||||
archiveClassifier = "Java8"
|
||||
from(project.configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
|
||||
from(processResources.get().outputs)
|
||||
from(jar.get().outputs)
|
||||
from(shadeJava8.map { if (it.isDirectory) it else zipTree(it) })
|
||||
destinationDirectory = rootProject.layout.buildDirectory
|
||||
relocate("de.tr7zw.changeme.nbtapi", "cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi")
|
||||
|
@@ -49,7 +49,7 @@ java {
|
||||
|
||||
tasks {
|
||||
withType<Jar> {
|
||||
archiveBaseName = "AirGameCore-Velocity"
|
||||
archiveBaseName = "HamsterCore-Velocity"
|
||||
}
|
||||
shadowJar {
|
||||
destinationDirectory = rootProject.layout.buildDirectory
|
||||
|
Reference in New Issue
Block a user