forked from REAndroid/APKEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·55 lines (45 loc) · 1.16 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
apply plugin: 'java'
group 'com.reandroid.apkeditor'
version '1.3.2'
java {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.compileJava {
//options.addStringOption('-Xlint:unchecked', '-quiet')
}
}
}
repositories {
mavenCentral()
}
dependencies {
//implementation("io.github.reandroid:ARSCLib:+")
compile(files("$rootProject.projectDir/libs/ARSCLib.jar"))
// built from: https://github.com/REAndroid/smali-lib
compile(files("$rootProject.projectDir/libs/smali.jar"))
}
processResources {
filesMatching('apkeditor.properties') {
expand('version': version)
}
}
javadoc {
exclude('com/reandroid/test/**')
}
jar {
exclude('com/reandroid/test/**')
duplicatesStrategy = DuplicatesStrategy.FAIL
}
task fatJar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Main-Class': 'com.reandroid.apkeditor.Main'
)
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}