-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathbuild.gradle
executable file
·79 lines (63 loc) · 1.96 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
buildscript {
ext {
springBootVersion = '2.1.5.RELEASE'
}
repositories {
maven {url "http://nexus.cloud.school.thoughtworks.cn/repository/maven-public/"}
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
plugins {
id "io.spring.dependency-management" version "1.0.6.RELEASE"
id "org.springframework.boot" version "2.0.6.RELEASE"
id "org.flywaydb.flyway" version "5.0.7"
id "com.gorylenko.gradle-git-properties" version "2.0.0"
id "com.palantir.docker" version "0.13.0"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.dmall'
version = '0.1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
jar {
baseName = 'order-service'
version = "${version}"
}
docker {
name "${project.group}/${jar.baseName}"
files jar.archivePath
buildArgs(['JAR_FILE': "${jar.archiveName}"])
}
repositories {
maven {url "http://nexus.cloud.school.thoughtworks.cn/repository/maven-public/"}
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
mavenCentral()
}
ext {
springCloudVersion = 'Greenwich.SR1'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.flywaydb:flyway-core'
implementation 'io.springfox:springfox-swagger2:2.9.2'
implementation 'io.springfox:springfox-swagger-ui:2.9.2'
testCompile 'org.springframework.boot:spring-boot-starter-test'
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
runtimeOnly 'com.h2database:h2'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
springBoot {
buildInfo()
}