This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
/
build.gradle
124 lines (100 loc) · 3.53 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
119
120
121
122
123
124
buildscript {
ext {
springBootVersion = '1.1.6.RELEASE'
springCloudVersion = '1.1.1.RELEASE'
}
repositories {
mavenCentral()
}
buildscript {
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
}
}
project(':cities-service') {
apply plugin: 'spring-boot'
jar {
baseName = 'cities-service'
version = ''
}
dependencies {
// Spring
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-data-rest")
compile("org.springframework.cloud:spring-cloud-spring-service-connector:${springCloudVersion}")
compile("org.springframework.cloud:spring-cloud-cloudfoundry-connector:${springCloudVersion}")
// JDBC drivers
runtime("org.hsqldb:hsqldb")
runtime("mysql:mysql-connector-java:5.1.25")
testCompile("junit:junit")
versionManagement 'io.spring.platform:platform-versions:1.0.2.RELEASE@properties'
}
}
project(':cities-client') {
jar {
baseName = 'cities-client'
version = ''
}
dependencies {
// Spring
compile "org.springframework.hateoas:spring-hateoas:0.16.0.RELEASE"
compile "org.springframework.cloud:spring-cloud-spring-service-connector:${springCloudVersion}"
compile "org.springframework.cloud:spring-cloud-cloudfoundry-connector:${springCloudVersion}"
compile "org.springframework.cloud:spring-cloud-localconfig-connector:${springCloudVersion}"
// Feign
compile 'com.netflix.feign:feign-core:6.1.3'
compile 'com.netflix.feign:feign-jackson:6.1.3'
}
}
project(':cities-ui') {
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath 'de.obqo.gradle:gradle-lesscss-plugin:1.0-1.3.3'
}
}
apply plugin: 'spring-boot'
jar {
baseName = 'cities-ui'
version = ''
}
dependencies {
compile project(':cities-client')
// Spring
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.data:spring-data-commons"
compile("org.springframework.cloud:spring-cloud-spring-service-connector:${springCloudVersion}")
// Webjars
compile 'org.webjars:bootstrap:3.2.0'
compile 'org.webjars:angularjs:1.2.23'
compile 'org.webjars:angular-ui-bootstrap:0.11.0-2'
compile 'org.webjars:angular-ui-router:0.2.11'
compile 'org.webjars:angular-ui:0.4.0-3'
compile 'org.webjars:angular-ui-bootstrap:0.11.0-2'
compile 'org.webjars:angularjs-google-maps:0.6.0'
compile 'org.webjars:jquery:2.1.1'
testCompile "org.springframework.boot:spring-boot-starter-test"
versionManagement 'io.spring.platform:platform-versions:1.0.2.RELEASE@properties'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}