|
@@ -1,5 +1,5 @@
|
|
|
plugins {
|
|
plugins {
|
|
|
- java
|
|
|
|
|
|
|
+ id("java-library")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
group = "space.anyi"
|
|
group = "space.anyi"
|
|
@@ -11,8 +11,14 @@ repositories {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
dependencies {
|
|
|
|
|
+ //使用platform方法导入的是BOM依赖管理,BOM依赖管理会自动管理依赖的版本
|
|
|
|
|
+ api(platform("org.springframework.cloud:spring-cloud-dependencies:3.1.1"))
|
|
|
|
|
+ api(platform("org.springframework.boot:spring-boot-dependencies:2.7.0"))
|
|
|
|
|
+ api("org.springframework.cloud:spring-cloud-starter")
|
|
|
|
|
+ api("org.springframework.cloud:spring-cloud-starter-openfeign")
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
tasks.getByName<Test>("test") {
|
|
tasks.getByName<Test>("test") {
|