-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
74 lines (61 loc) · 2.67 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必须在顶部,注意位置
buildscript {
repositories {
// 优先使用国内源
maven { url 'https://maven.aliyun.com/repository/public' }
mavenCentral()
}
dependencies {
// 让spring-boot支持gradle
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.1.RELEASE")
}
}
plugins {
id 'java'
id 'org.springframework.boot' version '2.1.1.RELEASE'
}
apply plugin: 'java'
apply plugin: 'idea'
// 使用spring boot
apply plugin: "org.springframework.boot"
// 使用spring boot的自动依赖管理
apply plugin: 'io.spring.dependency-management'
group 'com.chunlei'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
// 使用国内的源
maven { url 'https://maven.aliyun.com/repository/public' }
mavenCentral()
}
jar {
baseName = 'eatapi'
version = '1.0.0'
}
dependencies {
// compile group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: '1.5.22.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-web'
compile group: 'org.mybatis.spring.boot', name: 'mybatis-spring-boot-autoconfigure', version: '1.3.5'
compile group: 'org.mybatis.spring.boot', name: 'mybatis-spring-boot-starter', version: '1.3.5'
compile("org.springframework.boot:spring-boot-starter-jdbc")
compile group: 'org.springframework', name: 'spring-tx', version: '5.0.15.RELEASE'
compile group: 'org.mybatis', name: 'mybatis-spring', version: '1.3.3'
compile group: 'org.mybatis', name: 'mybatis', version: '3.4.6'
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.17'
compile group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.1.20'
compile group: 'com.alibaba', name: 'druid', version: '1.1.19'
compile("org.apache.httpcomponents:httpclient:4.5.1")
compile('com.alibaba:fastjson:1.2.47')
compile group: 'com.aliyun.oss', name: 'aliyun-sdk-oss', version: '2.8.3'
compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.2'
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.2'
// compile("io.springfox:springfox-swagger2:2.2.2")
// compile("io.springfox:springfox-swagger-ui:2.2.2")
compile group: 'mysql', name: 'mysql-connector-java', version: '6.0.6'
compile group: 'org.slf4j', name: 'log4j-over-slf4j', version: '1.7.28'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
testCompile group: 'junit', name: 'junit', version: '4.12'
compile fileTree(dir: './libs', include: '*.jar')
}