Output shrinked .jar files to build directories, and use the compile classpath instead of the runtime one

This commit is contained in:
Username404 2021-05-20 13:59:19 +02:00
parent 22009a53f1
commit dae08e3957
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -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)
})
}