-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
118 lines (104 loc) · 3.22 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
buildscript {
ext {
springBootVersion = '1.5.14.RELEASE'
verifierVersion = '1.2.3.RELEASE'
axonVersion = '3.1.2'
}
repositories {
mavenCentral()
}
dependencies {
classpath 'au.com.dius:pact-jvm-provider-gradle_2.12:3.5.13'
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "org.springframework.cloud:spring-cloud-contract-gradle-plugin:${verifierVersion}"
}
}
plugins {
id "au.com.dius.pact" version "3.5.13"
id "com.wiredforcode.spawn" version "0.8.2"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'groovy'
apply plugin: 'spring-cloud-contract'
apply plugin: "jacoco"
apply plugin: 'checkstyle'
group = 'org.aitesting.microservices'
version = '0.0.1'
sourceCompatibility = 1.8
ext {
springCloudVersion = 'Edgware.SR3'
}
repositories {
mavenCentral()
}
dependencies {
// TODO local files dependencies while things are not up.
compile files('libs/library--axon-configuration-0.0.1.jar')
compile files('libs/driver-common-1.0.jar')
compile("org.axonframework:axon-core:${axonVersion}")
compile("org.axonframework:axon-mongo:${axonVersion}")
compile("org.axonframework:axon-spring-boot-starter:${axonVersion}")
compile("org.axonframework:axon-spring-boot-autoconfigure:${axonVersion}")
compile("org.axonframework:axon-amqp:${axonVersion}")
compile("org.axonframework:axon-test:${axonVersion}")
compile('org.springframework.retry:spring-retry:1.2.2.RELEASE')
compile('org.springframework.boot:spring-boot-starter-amqp')
compile('org.springframework.boot:spring-boot-starter-data-mongodb')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-aop')
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')
testCompile('au.com.dius:pact-jvm-provider-junit_2.11:3.5.13')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('org.codehaus.groovy:groovy-all:2.4.6')
testCompile("org.springframework.cloud:spring-cloud-starter-contract-verifier:${verifierVersion}")
testCompile("org.springframework.cloud:spring-cloud-contract-spec:${verifierVersion}")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
contracts {
baseClassMappings {
baseClassMapping(".*driverquery.*", "org.aitesting.microservices.driverquery.provider.DriverQueryContractBase")
}
}
checkstyle {
toolVersion = "8.7"
configFile = new File(rootDir, "checkstyle.xml")
}
checkstyleMain {
source = fileTree('src/main') {
excludes = ['*.yml']
}
}
checkstyleTest {
source = fileTree('src/test') {
excludes = ['*.yml']
}
}
jacocoTestReport {
reports {
html.destination file("${buildDir}/jacocoHtml")
}
}
jacocoTestCoverageVerification {
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: "${project.buildDir}/classes/main",
exclude: ['**/controllers/DriverControllerExceptionHandler*',
'**/DriverQueryApplication*'])
})
}
violationRules {
rule {
limit {
minimum = 0.85
}
}
}
}
test.finalizedBy(jacocoTestCoverageVerification)