From 2f028c16504c61ea7bcfa6fbc9d06ed0d5b3a906 Mon Sep 17 00:00:00 2001 From: liach Date: Sat, 23 Jan 2021 19:45:59 -0600 Subject: Use fabric cfr --- enigma/build.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/enigma/build.gradle b/enigma/build.gradle index be449e27..3a136037 100644 --- a/enigma/build.gradle +++ b/enigma/build.gradle @@ -2,7 +2,6 @@ configurations { proGuard } -repositories.mavenLocal() repositories.jcenter() dependencies { @@ -12,12 +11,11 @@ dependencies { implementation 'org.ow2.asm:asm-util:9.0' implementation 'net.fabricmc:procyon-fabric-compilertools:0.5.35.13' - implementation 'net.fabricmc:cfr:local' + implementation 'net.fabricmc:cfr:0.0.2' testImplementation 'junit:junit:4.+' testImplementation 'org.hamcrest:hamcrest-all:1.+' proGuard 'com.guardsquare:proguard-base:7.0.1' - // proguard does not yet support java 15. Add -Dorg.gradle.java.home="" to bypass that } // Generate "version.txt" file @@ -38,6 +36,7 @@ sourceSets.main.output.dir genOutputDir, builtBy: generateVersionFile def libraryJarsArg = JavaVersion.current().java9Compatible ? "/jmods" : "/lib/rt.jar" +// If your test fails for class file version problem with proguard, run gradle with -Dorg.gradle.java.home="" flag file('src/test/java/cuchaz/enigma/inputs').listFiles().each { theFile -> if (theFile.directory) { task("${theFile.name}TestJar", type: Jar) { -- cgit v1.2.3