-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.gradle
63 lines (52 loc) · 1.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
// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'eclipse'
// In this section you declare where to find the dependencies of your project
repositories {
// Use 'jcenter' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
sourceSets {
main {
java {
exclude 'src/integration'
}
}
integration {
java {
compileClasspath += main.output
runtimeClasspath += main.output
srcDir 'src/integration'
}
}
}
configurations {
integrationCompile.extendsFrom testCompile
integrationRuntime.extendsFrom testRuntime
}
// In this section you declare the dependencies for your production and test code
dependencies {
compile 'org.ow2.asm:asm-all:5.0.4' // Bytecode manipulation
compile 'org.choco-solver:choco-solver:3.3.1'
compile 'dk.brics.automaton:automaton:1.11-8' // Used for regex
compile 'junit:junit:4.12' // Used for assertions
testCompile 'junit:junit:4.12'
testCompile 'org.codehaus.groovy:groovy-all:2.4.3'
testCompile 'org.mockito:mockito-core:1.10.19'
}
apply plugin: "jacoco"
jacoco {
toolVersion = "0.7.1.201405082137"
}
version = '0.2'
jar {
manifest {
attributes 'Premain-Class': 'janala.instrument.SnoopInstructionTransformer'
}
}
task integrationTest (type: Test) {
testClassesDir = sourceSets.integration.output.classesDir
classpath = sourceSets.integration.runtimeClasspath
}