31 lines
615 B
Groovy
31 lines
615 B
Groovy
|
|
java {
|
||
|
|
toolchain {
|
||
|
|
languageVersion = JavaLanguageVersion.of(21)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
repositories {
|
||
|
|
mavenCentral()
|
||
|
|
}
|
||
|
|
|
||
|
|
ext {
|
||
|
|
set('springCloudVersion', "2025.0.0")
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
implementation 'org.springframework.cloud:spring-cloud-config-server'
|
||
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
||
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencyManagement {
|
||
|
|
imports {
|
||
|
|
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
tasks.named('test') {
|
||
|
|
useJUnitPlatform()
|
||
|
|
}
|