-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
49 lines (40 loc) · 1.59 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
buildscript {
ext {
springBootVersion = '2.0.4.RELEASE'
springCloudVersion = 'Finchley.SR1'
lombokVersion = '1.18.2'
servletApiVersion = '4.0.1'
}
// Common repositories:
apply from: "${gradleUserHome}/repos.gradle", to: buildscript
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 10
dependencies {
compile("org.slf4j:slf4j-simple:${slf4jVersion}")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-webflux")
compile("org.springframework.cloud:spring-cloud-starter-stream-kafka")
compile("javax.servlet:javax.servlet-api:${servletApiVersion}")
// Necessary for @SpringBootApplication(exclude = TestSupportBinderAutoConfiguration.class)
compile('org.springframework.cloud:spring-cloud-stream-test-support')
compileOnly("org.projectlombok:lombok:${lombokVersion}")
runtime('org.springframework.boot:spring-boot-devtools')
testCompile('org.springframework.boot:spring-boot-starter-test')
// Has to be excluded from BinderAutoConfiguration, when running production code:
// @SpringBootApplication(exclude = TestSupportBinderAutoConfiguration.class)
testCompile('org.springframework.cloud:spring-cloud-stream-test-support')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}