-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
148 lines (119 loc) · 4.78 KB
/
build.gradle.kts
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
base
kotlin("jvm") version Versions.kotlin apply false
// see: https://kotlinlang.org/docs/reference/compiler-plugins.html
kotlin("plugin.spring") version Versions.kotlin apply false
kotlin("plugin.allopen") version Versions.kotlin apply false
kotlin("plugin.noarg") version Versions.kotlin apply false
kotlin("plugin.jpa") version Versions.kotlin apply false
id(BuildPlugins.dokka) version BuildPlugins.Versions.dokka apply false
id(BuildPlugins.dependency_management) version BuildPlugins.Versions.dependencyManagement
`maven-publish`
}
allprojects {
repositories {
mavenCentral()
jcenter()
maven("https://repo.spring.io/milestone")
maven("https://repo.spring.io/snapshot")
}
}
subprojects {
apply {
plugin<JavaLibraryPlugin>()
plugin<KotlinPlatformJvmPlugin>()
plugin("jacoco")
plugin("org.jetbrains.dokka")
plugin("io.spring.dependency-management")
plugin("maven-publish")
}
tasks.withType<KotlinCompile> {
sourceCompatibility = "1.8"
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xjvm-default=enable")
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("FAILED")
}
}
tasks["clean"].doLast {
delete("./.project")
delete("./out")
delete("./bin")
}
dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:${Versions.spring_boot}")
mavenBom("io.r2dbc:r2dbc-bom:${Versions.r2dbc}")
}
dependencies {
dependency(Libraries.kotlin_stdlib)
dependency(Libraries.kotlin_stdlib_jdk7)
dependency(Libraries.kotlin_stdlib_jdk8)
dependency(Libraries.kotlin_reflect)
dependency(Libraries.kotlin_test)
dependency(Libraries.kotlin_test_junit5)
dependency(Libraries.kotlinx_coroutines_core)
dependency(Libraries.kotlinx_coroutines_jdk7)
dependency(Libraries.kotlinx_coroutines_jdk8)
dependency(Libraries.kotlinx_coroutines_reactor)
dependency(Libraries.kotlinx_coroutines_rx2)
dependency(Libraries.spring_fu_kofu)
// Jackson
dependency(Libraries.jackson_annotations)
dependency(Libraries.jackson_core)
dependency(Libraries.jackson_databind)
dependency(Libraries.jackson_datatype_jsr310)
dependency(Libraries.jackson_datatype_jdk8)
dependency(Libraries.jackson_datatype_joda)
dependency(Libraries.jackson_datatype_guava)
dependency(Libraries.jackson_module_java8)
dependency(Libraries.jackson_module_parameter)
dependency(Libraries.jackson_module_parameter_names)
dependency(Libraries.jackson_module_kotlin)
dependency(Libraries.jackson_module_afterburner)
dependency(Libraries.random_beans)
dependency(Libraries.reflectasm)
dependency(Libraries.junit_jupiter)
dependency(Libraries.junit_jupiter_api)
dependency(Libraries.junit_jupiter_engine)
dependency(Libraries.junit_jupiter_params)
dependency(Libraries.junit_platform_commons)
dependency(Libraries.junit_platform_engine)
dependency(Libraries.kluent)
dependency(Libraries.assertj_core)
dependency(Libraries.mockk)
dependency(Libraries.mockito_core)
dependency(Libraries.mockito_junit_jupiter)
dependency(Libraries.mockito_kotlin)
dependency(Libraries.testcontainers)
}
}
dependencies {
val api by configurations
val compile by configurations
val implementation by configurations
val testImplementation by configurations
val testRuntimeOnly by configurations
implementation(Libraries.kotlin_stdlib_jdk8)
implementation(Libraries.kotlin_reflect)
implementation(Libraries.kotlinx_coroutines_reactor)
api("org.springframework.boot:spring-boot")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "junit")
}
api(Libraries.kotlin_logging)
testImplementation(Libraries.logback)
testImplementation(Libraries.junit_jupiter)
testRuntimeOnly(Libraries.junit_platform_engine)
testImplementation(Libraries.kluent)
testImplementation(Libraries.assertj_core)
testImplementation(Libraries.testcontainers)
}
}