-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
113 lines (97 loc) · 3.18 KB
/
build.gradle
File metadata and controls
113 lines (97 loc) · 3.18 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
buildscript {
ext {
springBootVersion = '1.5.14.RELEASE'
verifierVersion = '1.2.3.RELEASE'
axonVersion = '3.1.2'
springfoxVersion = '2.7.0'
}
repositories {
mavenCentral()
}
dependencies {
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: 'spring-cloud-contract'
apply plugin: 'groovy'
apply plugin: "jacoco"
apply plugin: 'checkstyle'
group = 'org.aitesting.microservices'
version = '0.0.1'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
springCloudVersion = 'Edgware.SR3'
}
dependencies {
// TODO local files dependencies while things are not up.
compile files('libs/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("io.springfox:springfox-swagger2:${springfoxVersion}")
compile("io.springfox:springfox-swagger-ui:${springfoxVersion}")
compile('org.springframework.boot:spring-boot-starter-data-mongodb')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-amqp')
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile group: 'junit', name: 'junit', version: '4.12'
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(".*drivercmd.*", "org.aitesting.microservices.drivercmd.provider.DriverAggregateContractBase")
}
}
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 {
violationRules {
rule {
limit {
minimum = 0.85
}
}
}
}
test.finalizedBy(jacocoTestCoverageVerification)