-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
74 lines (63 loc) · 2 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
plugins {
java
kotlin("jvm")
kotlin("plugin.spring")
id("io.franzbecker.gradle-lombok")
id("com.github.ben-manes.versions")
}
tasks.withType(Wrapper::class.java) {
val gradleWrapperVersion: String by project
gradleVersion = gradleWrapperVersion
distributionType = Wrapper.DistributionType.BIN
}
val lombokVersion: String by project
val javaVersion = JavaVersion.VERSION_1_8
allprojects {
apply(plugin = "java")
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
apply(plugin = "io.franzbecker.gradle-lombok")
lombok {
version = lombokVersion
}
apply(plugin = "kotlin")
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "$javaVersion"
}
}
repositories {
mavenCentral()
}
val junit4Version: String by project
val assertkVersion: String by project
val assertjVersion: String by project
val junitJupiterVersion: String by project
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
annotationProcessor("org.projectlombok:lombok:$lombokVersion")
testImplementation("junit:junit:$junit4Version")
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
testImplementation(platform("org.junit:junit-bom:$junitJupiterVersion"))
testImplementation("org.assertj:assertj-core:$assertjVersion")
testImplementation("com.willowtreeapps.assertk:assertk-jvm:$assertkVersion")
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
showExceptions = true
showStandardStreams = true
events(
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED,
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED,
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
)
}
}
}
defaultTasks("clean", "fatJar", "installDist", "distZip", "distTar", "test")