63 lines
2.0 KiB
Groovy
63 lines
2.0 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version '2.5.4'
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
|
id 'java'
|
|
}
|
|
|
|
group = 'com.example'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = '1.8'
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
ext {
|
|
set('springCloudVersion', "2020.0.3")
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
|
|
implementation 'org.springframework.cloud:spring-cloud-starter-config'
|
|
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
|
|
implementation 'org.springframework.cloud:spring-cloud-starter-bus-amqp'
|
|
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
|
|
implementation 'org.springframework.cloud:spring-cloud-starter-circuitbreaker-resilience4j'
|
|
|
|
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
|
|
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin:2.2.3.RELEASE'
|
|
|
|
implementation 'io.micrometer:micrometer-registry-prometheus'
|
|
|
|
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
|
|
|
|
implementation group: 'org.modelmapper', name: 'modelmapper', version: '2.4.4'
|
|
implementation group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.1'
|
|
|
|
runtimeOnly group: 'com.h2database', name: 'h2', version: '1.3.176'
|
|
compileOnly 'org.projectlombok:lombok'
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
}
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|