-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathbuild.gradle
More file actions
99 lines (83 loc) · 2.23 KB
/
build.gradle
File metadata and controls
99 lines (83 loc) · 2.23 KB
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
92
93
94
95
96
97
98
99
buildscript {
ext {
vavrVersion = "0.9.2"
javaVersion = "1.8"
axonVersion = "3.1.2"
springBootVersion = "2.0.0.RELEASE"
kotlinVersion = "1.2.21"
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
}
plugins {
id "base"
id "idea"
id "eclipse"
id "com.avast.gradle.docker-compose" version "0.6.13"
id("io.franzbecker.gradle-lombok") version "3.2.0"
}
wrapper {
gradleVersion = "4.10.2"
}
allprojects {
apply plugin: "base"
apply plugin: "maven"
group = "daggerok"
version = "0.0.1"
defaultTasks "clean", "build"
}
subprojects {
apply plugin: "java"
apply plugin: "io.spring.dependency-management"
sourceCompatibility = targetCompatibility = "$javaVersion"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
compile("io.vavr:vavr:$vavrVersion")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
compile("com.fasterxml.jackson.module:jackson-module-kotlin")
compileOnly("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("io.projectreactor:reactor-test")
}
apply plugin: "kotlin"
compileKotlin {
kotlinOptions {
jvmTarget = "$javaVersion"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "$javaVersion"
}
}
}
dockerCompose {
useComposeFiles = [project.file("docker-compose-gradle.yaml")]
// captureContainersOutput = true
captureContainersOutput = false
stopContainers = true
removeContainers = true
removeImages = "Local"
removeVolumes = true
removeOrphans = true
forceRecreate = true
waitForTcpPorts = false
projectName = project.name
}
composeUp.dependsOn assemble