49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
plugins {
|
||
id("java-library")
|
||
id("org.jetbrains.kotlin.jvm") version "1.9.25"
|
||
}
|
||
|
||
group = "com.sycn"
|
||
version = "1.0.0"
|
||
|
||
repositories {
|
||
mavenCentral()
|
||
}
|
||
|
||
dependencies {
|
||
// Kotlin 标准库
|
||
implementation(kotlin("stdlib"))
|
||
// Spring Boot 自动配置
|
||
implementation("org.springframework.boot:spring-boot-starter:3.5.9")
|
||
// Jedis 客户端
|
||
implementation("redis.clients:jedis:5.1.0")
|
||
// 配置处理器
|
||
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor:3.5.9")
|
||
// 测试依赖
|
||
testImplementation("org.springframework.boot:spring-boot-starter-test:3.5.9")
|
||
}
|
||
|
||
java {
|
||
sourceCompatibility = JavaVersion.VERSION_17
|
||
targetCompatibility = JavaVersion.VERSION_17
|
||
}
|
||
|
||
kotlin {
|
||
jvmToolchain(17)
|
||
}
|
||
|
||
// 禁用Kotlin守护进程,避免路径编码问题
|
||
kotlin {
|
||
compilerOptions {
|
||
freeCompilerArgs.addAll("-Xdisable-default-scripting-plugin")
|
||
}
|
||
}
|
||
|
||
// 打包配置
|
||
tasks.withType<Jar> {
|
||
manifest {
|
||
attributes["Implementation-Title"] = "Redis ID Generator Starter"
|
||
attributes["Implementation-Version"] = version
|
||
}
|
||
}
|