summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar liach2021-01-23 19:45:59 -0600
committerGravatar liach2021-01-23 19:50:41 -0600
commit2f028c16504c61ea7bcfa6fbc9d06ed0d5b3a906 (patch)
tree94563d712386a01137c3be461e1355de4ec1e737
parentMake cfr much easier to use (diff)
downloadenigma-2f028c16504c61ea7bcfa6fbc9d06ed0d5b3a906.tar.gz
enigma-2f028c16504c61ea7bcfa6fbc9d06ed0d5b3a906.tar.xz
enigma-2f028c16504c61ea7bcfa6fbc9d06ed0d5b3a906.zip
Use fabric cfr
-rw-r--r--enigma/build.gradle5
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
5repositories.mavenLocal()
6repositories.jcenter() 5repositories.jcenter()
7 6
8dependencies { 7dependencies {
@@ -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
39def libraryJarsArg = JavaVersion.current().java9Compatible ? "<java.home>/jmods" : "<java.home>/lib/rt.jar" 37def 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
41file('src/test/java/cuchaz/enigma/inputs').listFiles().each { theFile -> 40file('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) {