Some checks failed
CI/CD Pipeline / build-and-deploy (push) Failing after 2h4m17s
- 在 llmx-core 中添加了多模态聊天相关的数据结构和接口 - 在 llmx-impl-bailian 中实现了多模态聊天的适配器和服务 - 新增了多模态聊天的控制器和相关配置- 重构了原有的聊天请求和响应结构,支持多模态内容
142 lines
4.6 KiB
Plaintext
142 lines
4.6 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.java)
|
|
alias(libs.plugins.kotlin.jvm)
|
|
alias(libs.plugins.kotlin.plugin.spring)
|
|
alias(libs.plugins.spring.boot)
|
|
alias(libs.plugins.spring.dependency.management)
|
|
alias(libs.plugins.jibLocalPlugin)
|
|
}
|
|
|
|
group = "org.jcnc"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
/**
|
|
* 由于 Kotlin 插件引入时会自动添加依赖,但根项目不需要 Kotlin 依赖,因此需要排除 Kotlin 依赖
|
|
*/
|
|
configurations.implementation {
|
|
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib")
|
|
}
|
|
allprojects {
|
|
// 设置全局属性
|
|
ext {
|
|
set(ProjectFlags.USE_SPRING_BOOT_WEB, false)
|
|
set(ProjectFlags.USE_LLM_CORE_SPI, false)
|
|
set(ProjectFlags.USE_SPRING_CLOUD_BOM, false)
|
|
set(ProjectFlags.IS_ROOT_MODULE, false)
|
|
set(ProjectFlags.USE_SPRING_BOOT_BOM,false)
|
|
}
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
url = uri("http://49.235.96.75:3001/api/packages/gewuyou/maven")
|
|
isAllowInsecureProtocol = true
|
|
}
|
|
maven {
|
|
url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev")
|
|
}
|
|
// maven {
|
|
// url = uri("https://raw.githubusercontent.com/eurotech/kura_addons/mvn-repo/")
|
|
// }
|
|
maven {
|
|
url = uri("https://maven.aliyun.com/repository/public/")
|
|
}
|
|
maven { url = uri("https://maven.aliyun.com/repository/central") }
|
|
maven {
|
|
url = uri("https://maven.aliyun.com/repository/spring/")
|
|
}
|
|
maven {
|
|
url = uri("https://maven.aliyun.com/repository/spring-plugin/")
|
|
}
|
|
maven {
|
|
url = uri("https://maven.aliyun.com/repository/gradle-plugin/")
|
|
}
|
|
mavenCentral()
|
|
google()
|
|
gradlePluginPortal()
|
|
}
|
|
afterEvaluate {
|
|
if (project.getPropertyByBoolean(ProjectFlags.IS_ROOT_MODULE)) {
|
|
/**
|
|
* 由于 Kotlin 插件引入时会自动添加依赖,但根项目不需要 Kotlin 依赖,因此需要排除 Kotlin 依赖
|
|
*/
|
|
configurations.implementation {
|
|
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
afterEvaluate {
|
|
// springbootWeb
|
|
if (project.getPropertyByBoolean(ProjectFlags.USE_SPRING_BOOT_WEB)) {
|
|
apply {
|
|
plugin(libs.plugins.spring.dependency.management.get().pluginId)
|
|
plugin(libs.plugins.spring.boot.get().pluginId)
|
|
plugin(libs.plugins.kotlin.plugin.spring.get().pluginId)
|
|
}
|
|
dependencies {
|
|
implementation(libs.springBootStarter.web)
|
|
|
|
testImplementation(libs.springBootStarter.test)
|
|
testRuntimeOnly(libs.junitPlatform.launcher)
|
|
}
|
|
}
|
|
// llmx-core-spi
|
|
if (project.getPropertyByBoolean(ProjectFlags.USE_LLM_CORE_SPI)) {
|
|
dependencies {
|
|
implementation(project(Modules.Core.SPI))
|
|
}
|
|
}
|
|
// springCloudBom
|
|
if (project.getPropertyByBoolean(ProjectFlags.USE_SPRING_CLOUD_BOM)) {
|
|
dependencies {
|
|
implementation(platform(libs.springCloudDependencies.bom))
|
|
}
|
|
}
|
|
if(project.getPropertyByBoolean(ProjectFlags.USE_SPRING_BOOT_BOM)){
|
|
dependencies {
|
|
implementation(platform(libs.springBootDependencies.bom))
|
|
}
|
|
}
|
|
}
|
|
val libs = rootProject.libs
|
|
apply {
|
|
plugin(libs.plugins.java.get().pluginId)
|
|
plugin(libs.plugins.kotlin.jvm.get().pluginId)
|
|
plugin(libs.plugins.jibLocalPlugin.get().pluginId)
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.addAll("-Xjsr305=strict")
|
|
}
|
|
}
|
|
jibConfig {
|
|
val env = System.getenv("SPRING_PROFILES_ACTIVE")
|
|
project {
|
|
projectName = "llmx-core-service"
|
|
ports = listOf("9002")
|
|
environment = mapOf("SPRING_PROFILES_ACTIVE" to env)
|
|
imageName = "llmx-core-service"
|
|
// paths = listOf(File(rootProject.projectDir, "scripts").absolutePath)
|
|
}
|
|
project {
|
|
projectName = "llmx-impl-bailian"
|
|
ports = listOf("9003")
|
|
environment = mapOf("SPRING_PROFILES_ACTIVE" to env)
|
|
imageName = "llmx-impl-bailian"
|
|
// paths = listOf(File(rootProject.projectDir, "scripts").absolutePath)
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
}
|
|
fun Project.getPropertyByBoolean(key: String): Boolean {
|
|
return properties[key]?.toString()?.toBoolean() ?: false
|
|
} |