-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (77 loc) · 2.42 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath('org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE')
classpath('org.springframework:springloaded:1.2.6.RELEASE')
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'jacoco'
//gets a formatted date
def getDate() {
def date = new Date()
def formattedDate = date.format('yyyyMMddHHmmss')
return formattedDate
}
jar {
baseName = 'chatplusplus'
version = "v0.3-build-${getDate()}"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile(
'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-starter-web-services',
'org.springframework.boot:spring-boot-starter-websocket',
'org.springframework.boot:spring-boot-devtools',
'org.springframework:spring-context:4.3.6.RELEASE',
'org.springframework:spring-jdbc:4.3.6.RELEASE',
'org.springframework.boot:spring-boot-starter-data-redis',
'org.springframework.session:spring-session:1.3.0.RELEASE',
'org.apache.commons:commons-dbcp2:2.1.1',
'org.jtwig:jtwig-spring-boot-starter:5.+',
'org.jtwig:jtwig-hot-reloading-extension:5.+',
'org.jtwig:jtwig-spring-asset-extension:5.+',
'org.webjars:sockjs-client:1.1.2',
'org.webjars:stomp-websocket:2.3.3',
'org.webjars:momentjs:2.17.1',
'org.webjars:bootstrap:3.3.7-1',
'org.webjars:html5shiv:3.7.3',
'org.webjars:respond:1.4.2',
'org.webjars:jquery:3.1.1-1',
'org.mockito:mockito-core:2.7.17'
)
runtime(
'mysql:mysql-connector-java:6.0.5'
)
testCompile(
'org.springframework.boot:spring-boot-starter-test',
'org.springframework:spring-test:4.3.6.RELEASE',
'junit:junit:4.12',
'org.hamcrest:hamcrest-library:1.3'
)
}
jacoco {
toolVersion = '0.7.6.201602180812'
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
reports{
html.enabled = true
xml.enabled = false
csv.enabled = false
}
}
//execute jacocoTestReport after test task is completed
test {
finalizedBy jacocoTestReport
}