-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (84 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
85
86
87
88
89
90
91
group = 'com.ncc.neon'
buildscript {
ext {
springBootVersion = '2.2.1.RELEASE'
compileLibraries = [
'org.projectlombok:lombok',
'io.projectreactor:reactor-core',
'org.springframework.boot:spring-boot-starter:' + springBootVersion
]
implementationLibraries = [
'org.springframework.boot:spring-boot-starter-actuator:' + springBootVersion,
'org.springframework.boot:spring-boot-starter-webflux:' + springBootVersion,
'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
]
runtimeLibraries = [
'org.springframework.boot:spring-boot-devtools:' + springBootVersion
]
testCompileLibraries = [
'org.springframework.boot:spring-boot-starter-test:' + springBootVersion
]
testImplementationLibraries = [
'org.springframework.boot:spring-boot-starter-test:' + springBootVersion,
'io.projectreactor:reactor-test'
]
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url "https://repo.spring.io/release"
}
maven {
url "https://repo.spring.io/milestone"
}
maven {
url "https://repo.spring.io/snapshot"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.22.0")
classpath("gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:2.2.0")
}
}
apply plugin: 'com.palantir.docker'
repositories {
mavenCentral()
gradlePluginPortal()
}
subprojects {
version = '0.0.1-SNAPSHOT'
}
task dockerCopy(dependsOn: ['dockerPrepare', 'esadapter:unpack', 'sqladapter:unpack', 'server:unpack', 'common:unpack']) << {
copy {
from fileTree(".").include("*/build/dependency/BOOT-INF/lib/*").files
into "build/docker/libs"
}
copy {
from "server/build/dependency/META-INF"
into "build/docker/meta"
}
copy {
from "common/build/dependency/BOOT-INF/classes"
into "build/docker/classes"
}
copy {
from "server/build/dependency/BOOT-INF/classes"
into "build/docker/classes"
}
copy {
from "esadapter/build/dependency/BOOT-INF/classes"
into "build/docker/classes"
}
copy {
from "sqladapter/build/dependency/BOOT-INF/classes"
into "build/docker/classes"
}
}
docker {
name "${project.group}/server"
}
docker.dependsOn(dockerCopy)