/
build.gradle
74 lines (64 loc) · 2.16 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
buildscript {
ext {
springBootVersion = '1.2.2.RELEASE'
}
repositories {
// NOTE: You should declare only repositories that you need here
mavenLocal()
mavenCentral()
maven { url "http://repo.spring.io/release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'
ext {
springCloudServiceBrokerVersion = '1.0.0.BUILD-SNAPSHOT'
baseName = 'spring-boot-sample-simple'
version = '0.0.0'
}
war {
baseName = baseName
version = version
}
repositories {
// NOTE: You should declare only repositories that you need here
mavenLocal()
mavenCentral()
maven { url "http://repo.spring.io/release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
maven { url "https://repository.apache.org/content/repositories/snapshots" }
}
configurations {
providedRuntime
compile.exclude module: "spring-boot-starter-tomcat"
}
dependencies {
compile("org.springframework.cloud:spring-cloud-cloudfoundry-service-broker:${springCloudServiceBrokerVersion}")
testCompile(group: "org.springframework.cloud", name: "spring-cloud-cloudfoundry-service-broker", version: "${springCloudServiceBrokerVersion}", classifier: "tests")
compile("org.springframework.boot:spring-boot-starter")
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
compile("org.apache.brooklyn:brooklyn-rest-client:0.9.0"){
exclude module: "slf4j-log4j12"
exclude module: "jetty-server"
}
compile("org.apache.brooklyn:brooklyn-core:0.9.0"){
exclude module: "slf4j-log4j12"
exclude module: "jetty-server"
}
compile("org.apache.httpcomponents:httpclient:4.5")
compile("org.springframework.boot:spring-boot-starter-web:1.2.5.RELEASE")
compile("org.springframework.boot:spring-boot-starter-jetty:1.2.5.RELEASE")
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2'
}