-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
50 lines (43 loc) · 1.56 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
application
checkstyle
id("io.freefair.lombok") version "8.13.1"
id("com.github.ben-manes.versions") version "0.52.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
application {
mainClass.set("org.example.hexlet.HelloWorld")
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("com.h2database:h2:2.3.232")
implementation("com.zaxxer:HikariCP:6.3.0")
implementation("com.fasterxml.jackson.core:jackson-databind:2.18.3")
implementation("org.apache.commons:commons-text:1.13.1")
implementation("gg.jte:jte:3.2.0")
implementation("org.slf4j:slf4j-simple:2.0.17")
implementation("io.javalin:javalin:6.6.0")
implementation("io.javalin:javalin-bundle:6.6.0")
implementation("io.javalin:javalin-rendering:6.6.0")
testImplementation("org.assertj:assertj-core:3.27.3")
testImplementation(platform("org.junit:junit-bom:5.12.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.test {
useJUnitPlatform()
// https://technology.lastminute.com/junit5-kotlin-and-gradle-dsl/
testLogging {
exceptionFormat = TestExceptionFormat.FULL
events = mutableSetOf(TestLogEvent.FAILED, TestLogEvent.PASSED, TestLogEvent.SKIPPED)
// showStackTraces = true
// showCauses = true
showStandardStreams = true
}
}