-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
82 lines (69 loc) · 2.17 KB
/
build.gradle.kts
File metadata and controls
82 lines (69 loc) · 2.17 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
import org.gradle.api.tasks.testing.logging.TestLogEvent.*
plugins {
java
id("io.franzbecker.gradle-lombok") version "3.2.0"
id("com.github.ben-manes.versions") version "0.25.0"
id("org.springframework.boot") version "2.2.0.M3" apply false
id("io.spring.dependency-management") version "1.0.8.RELEASE" apply false
}
tasks.withType(Wrapper::class.java) {
val gradleWrapperVersion: String by project
gradleVersion = gradleWrapperVersion
distributionType = Wrapper.DistributionType.BIN
}
allprojects {
apply(plugin = "io.franzbecker.gradle-lombok")
lombok {
val lombokVersion: String by project
version = lombokVersion
}
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone/") }
maven { url = uri("https://repo.spring.io/snapshot/") }
}
defaultTasks("clean", "build")
}
subprojects {
apply(plugin = "java")
java {
val javaVersion = JavaVersion.VERSION_1_8
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
val vavrVersion: String by project
val junitJupiterVersion: String by project
dependencies {
//implementation("org.springframework.boot:spring-boot-starter-rsocket")
//implementation("org.springframework.boot:spring-boot-starter-webflux")
testImplementation("org.springframework.boot:spring-boot-starter-test")
implementation("io.vavr:vavr:$vavrVersion")
testCompileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testImplementation(platform("org.junit:junit-bom:$junitJupiterVersion"))
testRuntime("org.junit.platform:junit-platform-launcher")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
testImplementation("junit:junit")
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
showExceptions = true
showStandardStreams = true
events(PASSED, SKIPPED, FAILED)
}
}
}
tasks {
named("clean") {
doLast {
delete(
project.buildDir,
"${project.projectDir}/out"
)
}
}
}
defaultTasks("clean", "build")