37 lines
1.1 KiB
Groovy
37 lines
1.1 KiB
Groovy
|
plugins {
|
||
|
id 'org.springframework.boot' version '3.4.0'
|
||
|
id 'io.spring.dependency-management' version '1.1.6'
|
||
|
id 'java'
|
||
|
}
|
||
|
|
||
|
group = 'cat.siesta'
|
||
|
version = '0.0.1-SNAPSHOT'
|
||
|
|
||
|
java.sourceCompatibility = '21'
|
||
|
|
||
|
bootRun {
|
||
|
environment SPRING_PROFILES_ACTIVE: environment.SPRING_PROFILES_ACTIVE ?: 'local'
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation('org.springframework.boot:spring-boot-starter-web')
|
||
|
implementation('org.springframework.boot:spring-boot-starter-validation')
|
||
|
implementation('io.github.wimdeblauwe:error-handling-spring-boot-starter:4.5.0')
|
||
|
implementation('org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0')
|
||
|
compileOnly('org.projectlombok:lombok')
|
||
|
annotationProcessor('org.projectlombok:lombok')
|
||
|
testCompileOnly('org.projectlombok:lombok')
|
||
|
testAnnotationProcessor('org.projectlombok:lombok')
|
||
|
developmentOnly('org.springframework.boot:spring-boot-devtools')
|
||
|
developmentOnly('org.springframework.boot:spring-boot-docker-compose')
|
||
|
testImplementation('org.springframework.boot:spring-boot-starter-test')
|
||
|
}
|
||
|
|
||
|
tasks.withType(Test) {
|
||
|
useJUnitPlatform()
|
||
|
}
|