-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
82 lines (70 loc) · 2.2 KB
/
build.gradle
File metadata and controls
82 lines (70 loc) · 2.2 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
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
repositories {
jcenter()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.flywaydb:flyway-gradle-plugin:3.2.1'
classpath 'org.akhikhl.gretty:gretty:+'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'war'
apply plugin: 'org.flywaydb.flyway'
apply plugin: 'org.akhikhl.gretty'
apply plugin: "jacoco"
apply plugin: 'checkstyle'
test {
beforeTest { descr ->
logger.warn("Starting Test ${descr.className} : ${descr.name}")
}
}
jacoco {
toolVersion = "0.7.4.201502262128"
}
checkstyle {
toolVersion = "6.14.1"
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}
checkstyleMain {
reports {
xml {
destination "build/reports/checkstyle/main.xml"
}
}
}
dependencies {
compile 'mysql:mysql-connector-java:5.1.37'
compile 'org.mybatis:mybatis:3.3.0'
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile 'org.glassfish.jersey:project:2.22.1'
compile 'org.glassfish.jersey.media:jersey-media-json-jackson:2.22.1'
compile 'org.glassfish.jersey.core:jersey-server:2.22.1'
compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.22.1'
compile 'org.apache.logging.log4j:log4j-api:2.5'
compile 'org.apache.logging.log4j:log4j-core:2.5'
compile 'com.google.code.gson:gson:2.5'
compile 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:1.16'
compile 'com.wordnik:swagger-core_2.10:1.3.13'
compile 'io.swagger:swagger-jersey2-jaxrs:1.5.7'
compile 'org.webjars:swagger-ui:2.1.4'
compile 'com.mchange:c3p0:0.9.5.2'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-all:1.10.19'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:2.22.1'
testCompile 'org.flywaydb:flyway-core:3.2.1'
}
task createCoberturaReport(type: Exec) {
executable "bash"
args "-c", "mkdir ./build/reports/cobertura && ./tools/cover2cover.py ./build/reports/jacoco/test/jacocoTestReport.xml src/main/java > ./build/reports/cobertura/coverage.xml"
}