-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle
96 lines (73 loc) · 3.05 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
buildscript {
ext {
springBootVersion = '2.0.4.RELEASE'
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath("io.spring.gradle:dependency-management-plugin:1.0.6.RELEASE")
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "org.springframework.cloud:spring-cloud-contract-gradle-plugin:2.0.1.RELEASE"
}
}
apply plugin: 'idea'
apply plugin: 'eclipse'
group 'io.pivotal.dmfrey'
version '1.0-SNAPSHOT'
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'org.springframework.boot'
apply plugin: 'spring-cloud-contract'
apply plugin: 'io.spring.dependency-management'
group = 'io.pivotal.dmfrey'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/plugins-release" }
maven { url "https://repo.spring.io/plugins-milestone" }
}
ext {
springCloudVersion = 'Finchley.SR1'
}
dependencies {
// Spring dependencies
// Spring Boot dependencies
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-webflux')
compile('org.springframework.boot:spring-boot-starter-security')
// Spring Cloud dependencies
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')
compile('io.pivotal.spring.cloud:spring-cloud-services-starter-service-registry')
compile('org.springframework.cloud:spring-cloud-starter-netflix-hystrix')
compile('io.pivotal.spring.cloud:spring-cloud-services-starter-circuit-breaker')
compile('org.springframework.cloud:spring-cloud-starter-sleuth')
// Third-party dependencies
compile('com.rabbitmq:amqp-client:5.2.0')
compile('io.vavr:vavr:0.9.2')
annotationProcessor(
[group: 'org.projectlombok', name: 'lombok', version: '1.16.20'],
)
compile('org.projectlombok:lombok:1.16.20')
// Test dependencies
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('org.springframework.cloud:spring-cloud-starter-contract-verifier')
testCompile('org.springframework.cloud:spring-cloud-starter-contract-stub-runner')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom 'org.springframework.cloud:spring-cloud-contract-dependencies:2.0.1.RELEASE'
mavenBom "io.pivotal.spring.cloud:spring-cloud-services-dependencies:2.0.1.RELEASE"
}
}
}