68 lines
2.5 KiB
Kotlin
68 lines
2.5 KiB
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
id("org.springframework.boot") version "3.2.4"
|
|
id("io.spring.dependency-management") version "1.1.4"
|
|
kotlin("jvm") version "1.9.22"
|
|
kotlin("plugin.spring") version "1.9.22"
|
|
}
|
|
|
|
group = "xyz.fortern"
|
|
version = "1.0"
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.add("-Xjsr305=strict")
|
|
jvmTarget.set(JvmTarget.JVM_21)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
//版本号定义
|
|
object Versions {
|
|
const val FAST_JSON_2 = "2.0.45"
|
|
}
|
|
|
|
dependencies {
|
|
// Kotlin
|
|
// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib")
|
|
// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-reflect
|
|
runtimeOnly("org.jetbrains.kotlin:kotlin-reflect")
|
|
// Apache Commons CSV https://mvnrepository.com/artifact/org.apache.commons/commons-csv
|
|
implementation("org.apache.commons:commons-csv:1.10.0")
|
|
// Spring Boot
|
|
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
// Spring Boot Test
|
|
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
// Spring Security
|
|
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security
|
|
implementation("org.springframework.boot:spring-boot-starter-security")
|
|
// Spring Validation
|
|
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
|
|
implementation("org.springframework.boot:spring-boot-starter-validation:3.2.4")
|
|
// Redis
|
|
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis
|
|
implementation("org.springframework.boot:spring-boot-starter-data-redis")
|
|
// Fast Json 2
|
|
// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2
|
|
implementation("com.alibaba.fastjson2:fastjson2:${Versions.FAST_JSON_2}")
|
|
// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2-kotlin
|
|
implementation("com.alibaba.fastjson2:fastjson2-kotlin:${Versions.FAST_JSON_2}")
|
|
// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2-extension-spring6
|
|
implementation("com.alibaba.fastjson2:fastjson2-extension-spring6:${Versions.FAST_JSON_2}")
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|