File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,12 @@ There are three parts to the project:
2929Building
3030--------
3131
32- To build the jar, use ` ./gradlew shadowJar `
32+ To build, ` ./gradlew fatjar `
33+
34+ The Simplify jar will be in ` simplify/build/libs/simplify.jar `
35+
36+ You can test it's working with: ` java -jar simplify/build/libs/simplify.jar -i simplify/obfuscated-example `
37+
3338
3439Troubleshooting
3540---------------
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ buildscript {
1111
1212 dependencies {
1313 classpath ' org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.0'
14- classpath ' com.github.jengelman.gradle.plugins:shadow:1.2.2'
1514 }
1615}
1716
@@ -29,7 +28,6 @@ subprojects {
2928 apply plugin : ' java'
3029 apply plugin : ' eclipse'
3130 apply plugin : ' idea'
32- apply plugin : ' com.github.johnrengelman.shadow'
3331
3432 group = ' org.cf'
3533 sourceCompatibility = 1.7
Original file line number Diff line number Diff line change @@ -30,6 +30,13 @@ dependencies {
3030 testCompile depends. mockito
3131}
3232
33+ // Build a separate jar that contains all dependencies
34+ task fatJar (type : Jar ) {
35+ from sourceSets. main. output
36+ from { configurations. compile. collect { it. isDirectory() ? it : zipTree(it) } }
37+ }
38+ tasks. getByPath(' build' ). dependsOn(fatJar)
39+
3340task myTestsJar (type : Jar ) {
3441 // Simplify uses some classes from smalivm's tests.
3542 classifier = ' tests'
You can’t perform that action at this time.
0 commit comments