-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
executable file
·110 lines (93 loc) · 3.64 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
buildscript {
repositories {
jcenter()
}
dependencies {
// STUFF FOR JACOCO
classpath 'com.palantir:jacoco-coverage:0.3.0'
// jacoco-coverage blows up unless you specify guava dependency
classpath 'com.google.guava:guava:18.0'
// Plugin for spitting out coverage numbers to the console
classpath 'com.github.ksoichiro:gradle-console-reporter:0.4.0'
// STUFF FOR BINTRAY
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
}
}
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'maven'
apply plugin: 'project-report'
apply plugin: 'com.jfrog.bintray'
repositories {
maven {
url "http://www.evosuite.org/m2"
}
jcenter()
}
// ========== PROPERTIES FOR GRADLE BUILD - DEPENDENCY VERSIONS / ETC
ext {
slf4jVersion = '1.7.7'
servletApiVersion = '3.1.0'
zipkinVersion = '1.5.1'
junitVersion = '4.11'
mockitoVersion = '1.9.5'
logbackVersion = '1.1.2'
jacksonVersion = '2.4.2'
assertJVersion = '2.2.0'
junitDataproviderVersion = '1.10.1'
// JACOCO PROPERTIES
jacocoToolVersion = '0.7.6.201602180812'
// Anything in this jacocoExclusions list will be excluded from coverage reports.
jacocoExclusions = []
jacocoCoverageThresholdSetup = {
jacocoCoverage {
// Enforce minimum code coverage. See https://github.com/palantir/gradle-jacoco-coverage for the full list of options.
reportThreshold 0.1, INSTRUCTION
reportThreshold 0.0, BRANCH
}
}
}
dependencies {
slf4jVersion = '1.7.7'
servletApiVersion = '3.1.0'
zipkinVersion = '1.5.1'
junitVersion = '4.11'
mockitoVersion = '1.9.5'
logbackVersion = '1.1.2'
jacksonVersion = '2.4.2'
assertJVersion = '2.2.0'
junitDataproviderVersion = '1.10.1'
compile(
"io.dropwizard.metrics:metrics-core:3.1.0",
"com.google.code.findbugs:jsr305:2.0.3",
"com.newrelic.agent.java:newrelic-api:3.30.1",
"com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.6.1",
"com.fasterxml.jackson.core:jackson-databind:2.6.1"
)
testCompile(
"junit:junit-dep:$junitVersion",
"junit:junit:4.12",
"org.mockito:mockito-core:$mockitoVersion",
"com.fasterxml.jackson.core:jackson-core:$jacksonVersion",
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
"ch.qos.logback:logback-classic:$logbackVersion",
"org.assertj:assertj-core:$assertJVersion",
"com.tngtech.java:junit-dataprovider:$junitDataproviderVersion",
"org.evosuite:evosuite-standalone-runtime:1.0.1"
)
}
ext.isReleaseVersion = !version.endsWith('SNAPSHOT')
task wrapper(type: Wrapper) {
gradleVersion = '2.6'
}
// ========== COMBO TEST REPORT - View the combined/merged report at: [project_root]/build/reports/tests/index.html
apply from: file(rootProject.projectDir.getAbsolutePath() + '/gradle/junitComboTestReport.gradle')
// ========== JACOCO SETUP - View the combined/merged report at: [project_root]/build/reports/jacoco/jacocoRootReport/html/index.html.
// Individual reports for each submodule can be found at: [project_root]/[submodule]/build/reports/jacoco/test/html/index.html
apply from: file(rootProject.projectDir.getAbsolutePath() + '/gradle/jacoco.gradle')
// ========== BINTRAY PUBLISHING
apply from: file(rootProject.projectDir.getAbsolutePath() + '/gradle/bintrayPublishing.gradle')
// ========== MISCELLANEOUS BUILD STUFF
allprojects {
group = groupId // Necessary for the maven install task to function correctly
}