-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (47 loc) · 1.46 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
buildscript {
ext {
springBootGradlePluginVersion = '1.5.6.RELEASE'
}
repositories {
mavenLocal()
maven{
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootGradlePluginVersion}")
}
}
ext {
GROUPID = 'com.springcloud.learn'
VERSION = '1.0.0-SNAPSHOT'
SOURCECOMPATIBILITY = 1.8
springBootGradlePluginVersion = '1.5.6.RELEASE'
}
allprojects{
group GROUPID
version VERSION
}
subprojects{
//apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
sourceCompatibility = SOURCECOMPATIBILITY
repositories {
mavenLocal()
maven{
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
mavenCentral()
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
//compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-eureka:1.3.2.RELEASE'
compile 'org.springframework.cloud:spring-cloud-starter-eureka-server:1.3.2.RELEASE'
compile "org.springframework.boot:spring-boot-gradle-plugin:${springBootGradlePluginVersion}"
compile 'mysql:mysql-connector-java:6.0.5'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
}