forked from allegro/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
92 lines (76 loc) · 2.13 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
plugins {
id 'java'
id 'pl.allegro.tech.build.axion-release' version '1.2.1'
}
scmVersion {
tag {
prefix = 'hermes'
}
versionCreator 'versionWithBranch'
}
allprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
group = 'pl.allegro.tech.hermes'
version = scmVersion.version
sourceCompatibility = 1.8
targetCompatibility = 1.8
project.ext.versions = [
guava : '16.0.1',
jackson : '2.5.1',
jersey : '2.12',
curator : '2.7.0',
wiremock: '1.47',
fongo : '1.6.1',
spock : '1.0-groovy-2.4'
]
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'pl.pragmatists', name: 'JUnitParams', version: '1.0.2'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
testCompile group: 'org.assertj', name: 'assertj-core', version: '1.5.0'
testCompile group: 'com.jayway.awaitility', name: 'awaitility', version: '1.6.1'
testCompile group: 'com.googlecode.catch-exception', name: 'catch-exception', version: '1.2.0'
}
}
subprojects {
configurations {
all*.exclude group: "org.slf4j", module: "slf4j-log4j12"
all*.exclude group: "log4j", module: "log4j"
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked,deprecation"
}
test {
testLogging {
exceptionFormat = 'full'
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
project.configurations {
provided {
description = 'Provided dependencies'
transitive = true
}
}
project.sourceSets {
main {
compileClasspath += project.configurations.provided
}
test {
compileClasspath += project.configurations.provided
runtimeClasspath += project.configurations.provided
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}