forked from dineug/SpringBoot-restAPI-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (57 loc) · 1.78 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
buildscript {
ext {
springBootVersion = '1.5.9.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
group = 'com.handcoding.restapi'
version = '0.0.1'
sourceCompatibility = 1.8
jar {
manifest {
attributes 'Title': 'My Application', 'Version': version, 'Main-Class': 'com.handcoding.restapi.RestapiApplication'
}
archiveName 'restapi.jar'
dependsOn configurations.runtime
from {
configurations.compile.collect {it.isDirectory()? it: zipTree(it)}
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile('org.springframework.boot:spring-boot-starter-test')
compile('org.springframework.boot:spring-boot-starter-web')
// mysql,mybatis
compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1')
compile('org.springframework.boot:spring-boot-starter-jdbc')
runtime('mysql:mysql-connector-java')
compile("org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16")
// aop
compile('org.springframework.boot:spring-boot-starter-aop')
// swagger
compile('io.springfox:springfox-swagger2:2.7.0')
compile('io.springfox:springfox-swagger-ui:2.7.0')
compile('io.swagger:swagger-jersey2-jaxrs:1.5.17')
// mail
compile("org.springframework.boot:spring-boot-starter-mail")
// messages
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
// redis
compile("org.springframework.boot:spring-boot-starter-data-redis")
// http
compile('com.squareup.retrofit2:retrofit:2.3.0')
compile('com.squareup.retrofit2:converter-gson:2.3.0')
compile('com.google.code.gson:gson:2.8.2')
compile('com.squareup.okhttp3:okhttp:3.9.1')
compile('org.apache.commons:commons-lang3:3.7')
}