mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 13:06:30 +02:00
Relocate shadow deps
This commit is contained in:
parent
226e754547
commit
6d47c0d61f
@ -51,12 +51,22 @@ tasks.jar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: build relocated jar for minecraft launcher lib, non-relocated jar for packwiz-installer
|
||||||
|
tasks.register<com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation>("relocateShadowJar") {
|
||||||
|
target = tasks.shadowJar.get()
|
||||||
|
prefix = "link.infra.packwiz.deps"
|
||||||
|
}
|
||||||
|
|
||||||
// Commons CLI and Minimal JSON are already included in packwiz-installer-bootstrap
|
// Commons CLI and Minimal JSON are already included in packwiz-installer-bootstrap
|
||||||
tasks.shadowJar {
|
tasks.shadowJar {
|
||||||
dependencies {
|
dependencies {
|
||||||
exclude(dependency("commons-cli:commons-cli:1.4"))
|
//exclude(dependency("commons-cli:commons-cli:1.4"))
|
||||||
exclude(dependency("com.eclipsesource.minimal-json:minimal-json:0.9.5"))
|
exclude(dependency("com.eclipsesource.minimal-json:minimal-json:0.9.5"))
|
||||||
|
// TODO: exclude meta inf files
|
||||||
}
|
}
|
||||||
|
exclude("**/*.kotlin_metadata")
|
||||||
|
exclude("**/*.kotlin_builtins")
|
||||||
|
dependsOn(tasks.named("relocateShadowJar"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<proguard.gradle.ProGuardTask>("shrinkJar") {
|
tasks.register<proguard.gradle.ProGuardTask>("shrinkJar") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user