- 新增 LMApi 类实现 API 调用获取 AI 回复 - 修改 LocalWindow 类,添加系统提示信息- 更新 Main 类,引入 Markdown处理库 - 在 build.gradle 中添加相关依赖
47 lines
1.3 KiB
Groovy
47 lines
1.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
|
id 'edu.sc.seis.launch4j' version '2.5.4'
|
|
}
|
|
|
|
def requiredJavaVersion = 20
|
|
def currentJavaVersion = JavaVersion.current().majorVersion.toInteger()
|
|
if (currentJavaVersion != requiredJavaVersion) {
|
|
throw new GradleException("构建需要 JDK ${requiredJavaVersion},但当前是 JDK ${currentJavaVersion}。请更换 JDK 环境。")
|
|
}
|
|
|
|
group = 'com.axis.innovators.box'
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
maven { url "https://maven.aliyun.com/repository/public" }
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation platform('org.junit:junit-bom:5.10.0')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
// https://mvnrepository.com/artifact/org.commonmark/commonmark
|
|
implementation 'org.commonmark:commonmark:0.24.0'
|
|
// https://mvnrepository.com/artifact/org.commonjava.googlecode.markdown4j/markdown4j
|
|
implementation 'org.commonjava.googlecode.markdown4j:markdown4j:2.2-cj-1.1'
|
|
// https://mvnrepository.com/artifact/com.google.code.gson/gson
|
|
implementation 'com.google.code.gson:gson:2.8.9'
|
|
}
|
|
|
|
application {
|
|
mainClass = 'com.axis.innovators.box.Main'
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'com.axis.innovators.box.Main'
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
} |