-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (69 loc) · 2.41 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 {
ext {
springBootVersion = '2.0.1.RELEASE'
}
repositories {
mavenLocal()
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('se.transmode.gradle:gradle-docker:1.2')
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'docker'
repositories {
mavenLocal()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
jar{
baseName = 'spring-boot-demo'
version = '0.1.0'
}
task buildDocker(type: Docker, dependsOn: build) {
push = true
applicationName = jar.baseName
tagVersion = version
dockerfile = file('src/main/docker/Dockerfile')
doFirst {
copy {
from jar
into stageDir
}
}
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
}
compile('org.springframework.boot:spring-boot-starter-jetty')
//compile('org.springframework.boot:spring-boot-starter-amqp')
compile('org.springframework.boot:spring-boot-starter-aop')
compile('org.springframework.boot:spring-boot-starter-cache')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-data-redis')
compile('org.springframework.boot:spring-boot-starter-data-rest')
compile('org.springframework.boot:spring-boot-starter-security')
compile('org.springframework.boot:spring-boot-starter-validation')
//compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.session:spring-session:1.3.2.RELEASE')
compile('com.alibaba:druid-spring-boot-starter:1.1.9')
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
compile('com.auth0:java-jwt:3.1.0')
compile('net.sourceforge.nekohtml:nekohtml')
compile('io.springfox:springfox-swagger2:2.8.0')
compile('io.springfox:springfox-swagger-ui:2.8.0')
compile('org.flywaydb:flyway-core')
compile('com.google.guava:guava:19.0')
runtime('mysql:mysql-connector-java')
//runtime('org.postgresql:postgresql')
compile('org.projectlombok:lombok:1.16.20')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
dependencies { compile fileTree(dir:'lib',include:['*.jar'])}