Update proguard to 7.1.0-beta3 (and higher) and add mavenCentral to the repositories
This commit is contained in:
parent
c74b2d5195
commit
53487c9a4d
|
@ -3,7 +3,7 @@ import com.modrinth.minotaur.request.VersionType
|
|||
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath("com.guardsquare:proguard-gradle:7.1.0-beta2") {
|
||||
classpath("com.guardsquare:proguard-gradle:[7.1.0-beta3, 7.2[") {
|
||||
exclude("com.android.tools.build")
|
||||
}
|
||||
}
|
||||
|
@ -38,8 +38,9 @@ subprojects {
|
|||
withType(ShadowJar::class) { this.configurations = listOf(shadowC) }
|
||||
val shrinkJar = register("shrinkJar", proguard.gradle.ProGuardTask::class) { group = this@subprojects.group as String
|
||||
val dictionariesDir = "$rootDir/obfuscation"
|
||||
injars(this@tasks.getByName("remapJar"))
|
||||
outjars("$rootDir/shrinkedJars/")
|
||||
val remapJar = this@tasks.getByName("remapJar")
|
||||
injars(remapJar)
|
||||
outjars("$rootDir/shrinkedJars/${remapJar.outputs.files.singleFile.name}")
|
||||
keep("class $group.snowygui.mixins.* { * ; }")
|
||||
keep("class $group.snowygui.fabric.**")
|
||||
keep("class $group.snowygui.forge.**")
|
||||
|
|
|
@ -3,6 +3,7 @@ pluginManagement {
|
|||
maven(url = "https://maven.fabricmc.net/")
|
||||
maven(url = "https://maven.architectury.dev/")
|
||||
maven(url = "https://maven.minecraftforge.net/")
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue