Skip to content

Commit 2ec7d69

Browse files
committed
Update build instructions, remove shadowjar
1 parent 6de52eb commit 2ec7d69

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ There are three parts to the project:
2929
Building
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

3439
Troubleshooting
3540
---------------

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

smalivm/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
3340
task myTestsJar(type: Jar) {
3441
// Simplify uses some classes from smalivm's tests.
3542
classifier = 'tests'

0 commit comments

Comments
 (0)