Skip to content

Commit f202f52

Browse files
committed
shadowjar minimize dependencies
before: 13.37mb after: 8.4mb
1 parent 59752a3 commit f202f52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ shadowJar {
186186
'kotlin/**/*.kotlin_metadata',
187187
'kotlin/**/*.kotlin_builtins',
188188
'META-INF/*.version'
189+
minimize {
190+
exclude(dependency('cabaletta:baritone-api:.*'))
191+
exclude(dependency('org.spongepowered:mixin:.*'))
192+
}
189193
configurations = [project.configurations.jarLibs, project.configurations.onlyJarLibs]
190194
relocate 'kotlin', 'com.lambda.shadow.kotlin'
191195
relocate 'kotlinx', 'com.lambda.shadow.kotlinx'

0 commit comments

Comments
 (0)