2023-07-18 15:53:48 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'org.springframework.boot' version '3.1.1'
|
|
|
|
id 'io.spring.dependency-management' version '1.1.0'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'djmil'
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
|
|
|
|
java {
|
2023-07-20 12:31:04 +02:00
|
|
|
sourceCompatibility = '20'
|
2023-07-18 15:53:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
2023-07-20 12:31:04 +02:00
|
|
|
|
|
|
|
implementation 'org.springframework.data:spring-data-jdbc'
|
|
|
|
testImplementation 'com.h2database:h2'
|
2023-07-18 15:53:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('test') {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2023-07-20 12:31:04 +02:00
|
|
|
|
|
|
|
// This section causes useful test output to go to the terminal.
|
|
|
|
test {
|
|
|
|
testLogging {
|
|
|
|
events "passed", "skipped", "failed" //, "standardOut", "standardError"
|
|
|
|
|
|
|
|
showExceptions true
|
|
|
|
exceptionFormat "full"
|
|
|
|
showCauses true
|
|
|
|
showStackTraces true
|
|
|
|
|
|
|
|
// Change to `true` for more verbose test output
|
|
|
|
showStandardStreams = false
|
|
|
|
}
|
|
|
|
}
|