-
Notifications
You must be signed in to change notification settings - Fork 60
/
build.gradle
61 lines (58 loc) · 1.55 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
buildscript {
ext {
springBootVersion = '1.5.6.RELEASE'
springloadedVersion = '1.2.6.RELEASE'
}
repositories {
// mavenCentral()
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
/*classpath "org.springframework:springloaded:${springloadedVersion}"*/
}
}
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.chaokunyang.shop'
version = '0.1'
}
subprojects {
apply plugin: 'java'
apply plugin: 'spring-boot'
sourceCompatibility = 1.8 // 必须在apply java插件之后
targetCompatibility = 1.8
repositories {
// mavenCentral()
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR5'
}
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter-test'
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile("org.springframework.boot:spring-boot-devtools")
}
/* bootRun {
addResources = true
}*/
idea {
module {
downloadSources = true
downloadJavadoc = false
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
}
idea {
project {
jdkName = '1.8'
languageLevel = '1.8'
}
}