forked from pxb1988/dex2jar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
38 lines (32 loc) · 969 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
description = 'Dex Tools'
apply plugin:'application'
mainClassName="com.googlecode.dex2jar.tools.BaseCmd"
dependencies {
compile project(':dex-translator')
compile project(':d2j-smali')
compile project(':d2j-jasmin')
compile project(':dex-writer')
compile project(':d2j-base-cmd')
compile "com.google.android.tools:dx:1.7"
}
task bin_gen(type: JavaExec) {
dependsOn jar
classpath sourceSets.main.runtimeClasspath
ext.binDir="$buildDir/generated-sources/bin"
outputs.dir file(ext.binDir)
main='com.googlecode.dex2jar.bin_gen.BinGen'
args=["$projectDir/src/main/bin_gen","$ext.binDir"]
}
applicationDistribution.from(bin_gen)
//applicationDistribution.from('src/main/jars') {
// into("lib")
//}
applicationDistribution.from('open-source-license.txt') {
into("lib")
}
applicationDistribution.from("$parent.rootDir") {
include("NOTICE.txt")
include("LICENSE.txt")
}
startScripts.dependsOn bin_gen
artifacts.archives distZip