-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (60 loc) · 1.68 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.9.0'
// See src/test/java/utils/MyLombokPojo.java why we are using this lombok plugin
id 'org.jetbrains.kotlin.plugin.lombok' version '1.9.0'
id 'io.freefair.lombok' version '8.1.0'
id 'application'
}
group = 'de.kw.kotlin.onboarding'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
dependencies {
testImplementation(
'org.jetbrains.kotlin:kotlin-test',
"org.junit.jupiter:junit-jupiter-api",
"org.junit.jupiter:junit-jupiter-params",
"org.assertj:assertj-core:3.23.1",
// Mockito
'org.mockito:mockito-core:5.0.0',
'org.mockito:mockito-junit-jupiter:4.8.1',
// MocKk
"io.mockk:mockk:1.13.2",
)
// HINT: this is not needed since we use the kotlin lombok gradle plugin
// see more under src/test/java/utils/MyLombokPojo.java
// annotationProcessor(
// "org.projectlombok:lombok:1.18.26",
// )
//
// compileOnly(
// "org.projectlombok:lombok:1.18.26",
// )
//
// testImplementation(
// "org.projectlombok:lombok:1.18.26"
// )
//
// testAnnotationProcessor(
// // blaze-persistence-entity-view-processor is not needed in the test space
// // since all our models are only in production
// "org.projectlombok:lombok:1.18.26",
// )
}
test {
useJUnitPlatform()
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
application {
mainClassName = 'MainKt'
}