34 lines
666 B
Groovy
34 lines
666 B
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.cloud:spring-cloud-starter-netflix-eureka-server'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
}
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
|
|
}
|
|
} |