diff options
Diffstat (limited to 'smali/build.gradle')
-rw-r--r-- | smali/build.gradle | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/smali/build.gradle b/smali/build.gradle index 910fc3db..257c2703 100644 --- a/smali/build.gradle +++ b/smali/build.gradle @@ -79,4 +79,17 @@ compileJava.dependsOn generateAntlrSource, generateJflexSource compileTestJava.dependsOn generateTestAntlrSource processResources.inputs.properties('version': { -> version}) -processResources.expand('version': { -> version})
\ No newline at end of file +processResources.expand('version': { -> version}) + +// We have to do this in taskGraph.whenReady, so that we use the correct +// version to resolve the project dependencies +gradle.taskGraph.whenReady { + // build a jar containing all dependencies + jar { + from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } + + manifest { + attributes("Main-Class": "org.jf.smali.main") + } + } +} |