diff options
| author | 2021-01-23 19:45:59 -0600 | |
|---|---|---|
| committer | 2021-01-23 19:50:41 -0600 | |
| commit | 2f028c16504c61ea7bcfa6fbc9d06ed0d5b3a906 (patch) | |
| tree | 94563d712386a01137c3be461e1355de4ec1e737 | |
| parent | Make cfr much easier to use (diff) | |
| download | enigma-2f028c16504c61ea7bcfa6fbc9d06ed0d5b3a906.tar.gz enigma-2f028c16504c61ea7bcfa6fbc9d06ed0d5b3a906.tar.xz enigma-2f028c16504c61ea7bcfa6fbc9d06ed0d5b3a906.zip | |
Use fabric cfr
| -rw-r--r-- | enigma/build.gradle | 5 |
1 files 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 { | |||
| 2 | proGuard | 2 | proGuard |
| 3 | } | 3 | } |
| 4 | 4 | ||
| 5 | repositories.mavenLocal() | ||
| 6 | repositories.jcenter() | 5 | repositories.jcenter() |
| 7 | 6 | ||
| 8 | dependencies { | 7 | dependencies { |
| @@ -12,12 +11,11 @@ dependencies { | |||
| 12 | implementation 'org.ow2.asm:asm-util:9.0' | 11 | implementation 'org.ow2.asm:asm-util:9.0' |
| 13 | 12 | ||
| 14 | implementation 'net.fabricmc:procyon-fabric-compilertools:0.5.35.13' | 13 | implementation 'net.fabricmc:procyon-fabric-compilertools:0.5.35.13' |
| 15 | implementation 'net.fabricmc:cfr:local' | 14 | implementation 'net.fabricmc:cfr:0.0.2' |
| 16 | 15 | ||
| 17 | testImplementation 'junit:junit:4.+' | 16 | testImplementation 'junit:junit:4.+' |
| 18 | testImplementation 'org.hamcrest:hamcrest-all:1.+' | 17 | testImplementation 'org.hamcrest:hamcrest-all:1.+' |
| 19 | proGuard 'com.guardsquare:proguard-base:7.0.1' | 18 | proGuard 'com.guardsquare:proguard-base:7.0.1' |
| 20 | // proguard does not yet support java 15. Add -Dorg.gradle.java.home="<olderjdk>" to bypass that | ||
| 21 | } | 19 | } |
| 22 | 20 | ||
| 23 | // Generate "version.txt" file | 21 | // Generate "version.txt" file |
| @@ -38,6 +36,7 @@ sourceSets.main.output.dir genOutputDir, builtBy: generateVersionFile | |||
| 38 | 36 | ||
| 39 | def libraryJarsArg = JavaVersion.current().java9Compatible ? "<java.home>/jmods" : "<java.home>/lib/rt.jar" | 37 | def libraryJarsArg = JavaVersion.current().java9Compatible ? "<java.home>/jmods" : "<java.home>/lib/rt.jar" |
| 40 | 38 | ||
| 39 | // If your test fails for class file version problem with proguard, run gradle with -Dorg.gradle.java.home="<older jdk>" flag | ||
| 41 | file('src/test/java/cuchaz/enigma/inputs').listFiles().each { theFile -> | 40 | file('src/test/java/cuchaz/enigma/inputs').listFiles().each { theFile -> |
| 42 | if (theFile.directory) { | 41 | if (theFile.directory) { |
| 43 | task("${theFile.name}TestJar", type: Jar) { | 42 | task("${theFile.name}TestJar", type: Jar) { |