-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
63 lines (57 loc) · 2.07 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
63 lines (57 loc) · 2.07 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
plugins {
java
id("org.springframework.boot") version "3.5.13"
id("io.spring.dependency-management") version "1.1.7"
id("com.diffplug.spotless") version "8.4.0"
}
group = "com.andre"
version = "0.0.1-SNAPSHOT"
description = "save"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(26)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("io.github.wimdeblauwe:htmx-spring-boot-thymeleaf:4.0.3")
implementation("org.liquibase:liquibase-core")
implementation("org.jsoup:jsoup:1.18.3")
compileOnly("org.projectlombok:lombok")
developmentOnly("org.springframework.boot:spring-boot-docker-compose")
runtimeOnly("org.postgresql:postgresql")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testRuntimeOnly("com.h2database:h2")
testCompileOnly("org.projectlombok:lombok")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testAnnotationProcessor("org.projectlombok:lombok")
}
spotless {
java {
googleJavaFormat()
importOrder()
removeUnusedImports()
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "failed", "skipped")
}
addTestListener(object : TestListener {
override fun beforeSuite(suite: TestDescriptor) {}
override fun beforeTest(testDescriptor: TestDescriptor) {}
override fun afterTest(testDescriptor: TestDescriptor, result: TestResult) {}
override fun afterSuite(suite: TestDescriptor, result: TestResult) {
if (suite.parent == null) {
println("\nResults: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} passed, ${result.failedTestCount} failed, ${result.skippedTestCount} skipped)")
}
}
})
}