-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
62 lines (52 loc) · 2 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
55
56
57
58
59
60
61
62
plugins {
id 'application'
id 'groovy'
id 'java-library'
id 'java'
}
gradle.rootProject.ext.antlrVersion='4.9.1'
gradle.rootProject.ext.commonsCliVersion='1.2'
gradle.rootProject.ext.metadataVersion='2.4.1'
gradle.rootProject.ext.groovyVersion='3.0.9'
gradle.rootProject.ext.clueCommonVersion='3.25.3'
gradle.rootProject.ext.spockVersion='2.1-M2-groovy-3.0'
gradle.rootProject.ext.asmVersion = '8.0.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = 'org.clyze.doop.soot.Main'
repositories {
mavenCentral()
}
dependencies {
implementation "org.soot-oss:soot:4.4.1"
api(project(":clue-common")) {
exclude group: 'com.google.code.gson', module: 'gson'
exclude group: 'org.apache.ivy', module: 'ivy'
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
api project(":metadata-model")
implementation "org.ow2.asm:asm-tree:${asmVersion}", // Java bytecode library
"org.ow2.asm:asm-util:${asmVersion}"
implementation 'org.smali:dexlib2:2.4.0' // Dexlib2: library for reading/modifying/writing Android dex files
implementation 'net.dongliu:apk-parser:2.6.10' // needed for reading binary XML entries from APK inputs
implementation "org.antlr:antlr4-runtime:${antlrVersion}"
api project(":native-scanner")
implementation 'org.apache.commons:commons-collections4:4.1'
implementation 'org.apache.logging.log4j:log4j-api:2.17.1'
implementation 'org.apache.logging.log4j:log4j-core:2.17.1'
testImplementation "org.codehaus.groovy:groovy-all:${groovyVersion}" // Groovy
testImplementation "org.spockframework:spock-core:${spockVersion}"
}
//fatJar already exists
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': mainClassName
}
from { configurations.compileClasspath.collect { it.directory ? it : zipTree(it) } }
with jar
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
test {
useJUnitPlatform()
}
startScripts.dependsOn fatJar