This repository was archived by the owner on Aug 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (42 loc) · 1.43 KB
/
build.gradle
File metadata and controls
52 lines (42 loc) · 1.43 KB
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
group 'com.wego'
version '1.0.1'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'checkstyle'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
task wrapper(type: Wrapper) {
gradleVersion = '2.8'
}
repositories {
mavenCentral()
}
checkstyle {
ignoreFailures = false
configFile = file("${project.rootDir}/config/checkstyle/google_checks.xml")
toolVersion = '7.6'
configProperties = ['basedir': "${project.rootDir}/config/checkstyle"]
}
tasks.withType(Checkstyle).each { checkstyleTask ->
checkstyleTask.doLast {
reports.all { report ->
def outputFile = report.destination
if (outputFile.exists() && outputFile.text.contains("<error ")) {
throw new GradleException("There were checkstyle warnings! For more info check $outputFile")
}
}
}
}
dependencies {
compile "com.ning:async-http-client:1.8.17"
compile 'com.google.code.gson:gson:2.3.1'
compile 'redis.clients:jedis:2.9.0'
compile 'org.apache.commons:commons-collections4:4.1'
compile 'com.google.inject.extensions:guice-assistedinject:4.0'
compile 'org.apache.commons:commons-lang3:3.5'
compile "com.fasterxml.jackson.core:jackson-databind:2.7.9"
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-core:2.0.5-beta'
testCompile "com.github.tomakehurst:wiremock-standalone:2.6.0"
testCompile 'org.assertj:assertj-core:3.4.1'
}