43 lines
1.2 KiB
Groovy
43 lines
1.2 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}"
|
||
// https://mvnrepository.com/artifact/com.google.guava/guava
|
||
implementation group: 'com.google.guava', name: 'guava', version: '33.4.0-jre'
|
||
|
||
// 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()
|
||
}
|