-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
59 lines (48 loc) · 1.13 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
plugins {
application
kotlin("jvm") version "2.1.0"
}
group = "seat.code"
version = "1.0.0"
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
dependencies {
implementation("com.google.inject:guice:7.0.0")
testImplementation(kotlin("test"))
}
testing {
suites {
val test by getting(JvmTestSuite::class) {
useJUnitJupiter()
dependencies {
implementation("org.mockito:mockito-core:5.14.2")
implementation("org.mockito:mockito-junit-jupiter:5.14.2")
}
}
val e2e by registering(JvmTestSuite::class) {
dependencies {
implementation(project())
implementation("com.google.inject:guice:7.0.0")
}
targets {
all {
testTask.configure {
shouldRunAfter(test)
}
}
}
}
}
}
tasks.check {
dependsOn(testing.suites.named("e2e"))
}
application {
mainClass = "seat.code.ApplicationKt"
}