- 创建项目基本结构和配置 - 添加 Jib 插件支持镜像构建 - 配置 Spring Boot 和 Spring Cloud 依赖 - 设置 Nacos 服务发现 - 添加阿里云 DashScope 配置
27 lines
742 B
Plaintext
27 lines
742 B
Plaintext
extra {
|
|
// 开启springboot
|
|
setProperty(ProjectFlags.USE_SPRING_BOOT, true)
|
|
setProperty(ProjectFlags.USE_SPRING_CLOUD_BOM,true)
|
|
}
|
|
dependencies {
|
|
val libs = rootProject.libs
|
|
// Nacos 服务发现和配置
|
|
implementation(libs.springCloudStarter.alibaba.nacos.discovery)
|
|
|
|
// WebClient 和 Spring Cloud LoadBalancer
|
|
implementation(libs.springBootStarter.webflux)
|
|
implementation(libs.springCloudStarter.loadbalancer)
|
|
|
|
|
|
implementation(project(Modules.Core.SPI))
|
|
|
|
// Kotlin Coroutines
|
|
implementation(libs.kotlinx.coruntes.reactor)
|
|
|
|
implementation(libs.forgeBoot.webmvc.version.springBootStarter)
|
|
implementation(libs.forgeBoot.core.extension)
|
|
|
|
implementation(libs.jackson.module.kotlin)
|
|
|
|
}
|