41 lines
1.0 KiB
Groovy
41 lines
1.0 KiB
Groovy
plugins {
|
||
id 'org.springframework.boot'
|
||
id 'io.spring.dependency-management'
|
||
id 'java'
|
||
}
|
||
|
||
repositories {
|
||
mavenCentral()
|
||
}
|
||
|
||
configurations {
|
||
compileOnly {
|
||
extendsFrom annotationProcessor
|
||
}
|
||
}
|
||
|
||
dependencyManagement {
|
||
imports {
|
||
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
implementation "org.springframework.cloud:spring-cloud-starter-gateway:${gatewayStarterVersion}"
|
||
|
||
// actuator
|
||
implementation "org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}"
|
||
|
||
// logging
|
||
implementation "net.logstash.logback:logstash-logback-encoder:${logstashLogbackVersion}"
|
||
|
||
// testing
|
||
testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
|
||
testImplementation "org.springframework.cloud:spring-cloud-contract-wiremock"
|
||
}
|
||
|
||
springBoot {
|
||
// для использования со Spring Actuator: отображает в actuator/info информацию о приложении
|
||
buildInfo()
|
||
}
|