-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (72 loc) · 2.63 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
group 'springcloud'
version '1.0'
subprojects {
repositories {
repositories {
jcenter()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/libs-milestone" }
maven { url "http://repo.spring.io/plugins-release/" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://central.maven.org/maven2/" }
}
}
buildscript {
repositories {
jcenter()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/libs-milestone" }
maven { url "http://repo.spring.io/plugins-release/" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://central.maven.org/maven2/" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$version_spring_boot")
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'war'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
test {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-web:$version_spring_boot"
compile "org.springframework.boot:spring-boot-starter-actuator:$version_spring_boot"
compile "org.springframework.boot:spring-boot-starter-logging:$version_spring_boot"
compile "org.springframework.boot:spring-boot-starter-thymeleaf:$version_spring_boot"
compile "org.springframework.boot:spring-boot-starter-actuator:$version_spring_boot"
compile "com.ecwid.consul:consul-api:1.4.4"
compile "org.springframework.boot:spring-boot-starter-data-jpa:$version_spring_boot"
compile "mysql:mysql-connector-java:5.1.39"
compile "org.springframework.boot:spring-boot-devtools"
//page
compile "io.swagger:swagger-annotations:1.5.9"
compile "io.swagger:swagger-models:1.5.9"
compile "io.springfox:springfox-swagger2:2.5.0"
compile "io.springfox:springfox-swagger-ui:2.5.0"
compile "org.projectlombok:lombok:1.18.2"
testCompile "junit:junit:4.11"
testCompile "org.mockito:mockito-all:1.10.19"
}
}