Output shrinked .jar files to build directories, and use the compile classpath instead of the runtime one
This commit is contained in:
parent
22009a53f1
commit
dae08e3957
@ -77,7 +77,7 @@ subprojects {
|
||||
val shrinkJar = register("shrinkJar", proguard.gradle.ProGuardTask::class) { group = this@subprojects.group as String
|
||||
val dictionariesDir = "$rootDir/obfuscation"
|
||||
injars(shadowJar)
|
||||
outjars("$rootDir/shrinkedJars/${shadowJar.outputs.files.singleFile.name}")
|
||||
outjars("$buildDir/shrinkedJar/${shadowJar.outputs.files.singleFile.name}")
|
||||
keep("class $group.snowygui.mixins.* { * ; }")
|
||||
keep("class $group.snowygui.fabric.**")
|
||||
keep("class $group.snowygui.forge.**")
|
||||
@ -97,7 +97,7 @@ subprojects {
|
||||
|
||||
val homeDir = System.getProperty("java.home") as String
|
||||
doFirst {
|
||||
libraryjars(configurations.runtimeClasspath.get().filterNot { file ->
|
||||
libraryjars(configurations.compileClasspath.get().filterNot { file ->
|
||||
shadowC.contains(file)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user