-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
121 lines (103 loc) · 2.97 KB
/
build.gradle
File metadata and controls
121 lines (103 loc) · 2.97 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
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
111
112
113
114
115
116
117
118
119
120
buildscript {
ext {
springBootVersion = '1.5.14.RELEASE'
axonVersion = '3.1.2'
springfoxVersion = '2.7.0'
}
repositories {
mavenCentral()
maven {
url 'https://repo.spring.io/libs-release'
}
}
dependencies {
classpath('org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE')
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: "jacoco"
apply plugin: 'checkstyle'
group = 'org.aitesting.microservices'
jar.baseName = 'userservice'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://dl.bintray.com/palantir/releases'
}
}
ext {
springCloudVersion = 'Edgware.SR3'
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-amqp')
compile('org.springframework.cloud:spring-cloud-starter-config')
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')
compile('org.springframework.cloud:spring-cloud-config-client')
compile('org.springframework.cloud:spring-cloud-starter-netflix-hystrix')
compile('org.springframework.cloud:spring-cloud-security')
compile('org.springframework.security.oauth:spring-security-oauth2')
compile('org.springframework.security:spring-security-jwt')
compile('org.springframework.security:spring-security-rsa')
compile("io.springfox:springfox-swagger2:${springfoxVersion}")
compile("io.springfox:springfox-swagger-ui:${springfoxVersion}")
compile('mysql:mysql-connector-java')
testCompile('com.jayway.restassured:rest-assured:2.5.0')
testCompile('com.jayway.restassured:spring-mock-mvc:2.5.0')
testCompile('com.palantir.docker.compose:docker-compose-rule-junit4:0.33.0')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile('org.mockito:mockito-core:2.8.9')
}
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR3'
}
}
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}
jacocoTestReport {
reports {
html.destination file("${buildDir}/jacocoHtml")
}
}
jacocoTestCoverageVerification {
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: "${project.buildDir}/classes/main",
exclude: ['**/service/services/ApiService*'])
})
}
violationRules {
rule {
limit {
minimum = 0.85
}
}
}
}
test.finalizedBy(jacocoTestCoverageVerification)
checkstyle {
toolVersion = "8.7"
configFile = new File(rootDir, "checkstyle.xml")
}
checkstyleMain {
source = fileTree('src/main') {
excludes = ['*.yml']
}
}
checkstyleTest {
source = fileTree('src/test') {
excludes = ['*.yml']
}
}