-
Notifications
You must be signed in to change notification settings - Fork 176
/
build.gradle
90 lines (75 loc) · 2.53 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* User Manual available at https://docs.gradle.org/5.4.1/userguide/tutorial_java_projects.html
*/
import org.apache.tools.ant.taskdefs.condition.Os
plugins {
// Apply the java plugin to add support for Java
id 'java'
// Apply the application plugin to add support for building an application
id 'application'
}
apply plugin: 'jacoco'
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
jcenter()
mavenCentral()
// maven {
// url 'https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-release/'
// }
}
dependencies {
// TODO: should use maven repositories instead; however, at the moment they're not available
implementation 'net.sf.trove4j:trove4j:3.0.3'
compile fileTree(dir: 'lib', include: '*.jar')
// implementation 'de.tud.sse:soot-infoflow:2.8'
// implementation 'de.tud.sse:soot-infoflow-android:2.8'
// implementation 'de.tud.sse:soot-infoflow-cmd:2.8'
// implementation 'de.tud.sse:soot-infoflow-summaries:2.8'
implementation 'org.soot-oss:soot:4.2.1'
implementation ('org.slf4j:slf4j-nop:1.7.5')
implementation 'org.graphstream:gs-core:1.3'
implementation 'org.graphstream:gs-ui:1.3'
implementation('log4j:log4j:1.2.15') {
exclude group: 'javax.jms', module: 'jms'
exclude group: 'com.sun.jdmk', module: 'jmxtools'
exclude group: 'com.sun.jmx', module: 'jmxri'
}
// This dependency is found on compile classpath of this component and consumers.
implementation 'com.google.guava:guava:27.0.1-jre'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
}
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}
task buildDemoClass(type: Exec) {
workingDir '.'
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine 'powershell','-NoProfile','./buildDemo.ps1'
}
else {
commandLine './buildDemo.sh'
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
build.dependsOn buildDemoClass
assemble.dependsOn buildDemoClass
test.dependsOn buildDemoClass
// Define the main class for the application
mainClassName = 'dev.navids.soottutorial.Main'