47 lines
1.1 KiB
Groovy
47 lines
1.1 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version '2.6.6'
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
|
id 'java-library'
|
|
}
|
|
|
|
sourceCompatibility = 11.0
|
|
|
|
group = 'com.roy'
|
|
version = '1.0'
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
jar {
|
|
enabled(true)
|
|
}
|
|
|
|
ext {
|
|
set('springCloudVersion', "2021.0.1")
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.kafka:spring-kafka'
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
|
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
|
|
runtimeOnly 'com.h2database:h2:1.3.176'
|
|
|
|
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}"
|
|
}
|
|
} |