Update proguard to 7.1.0-beta3 (and higher) and add mavenCentral to the repositories

This commit is contained in:
Username404-59 2021-05-02 15:44:44 +02:00
parent c74b2d5195
commit 53487c9a4d
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 5 additions and 3 deletions

View File

@ -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.**")

View File

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