2024-07-05 17:31:45 +08:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
|
2024-07-22 17:24:41 +08:00
|
|
|
id 'org.springframework.boot' version '3.3.2'
|
2024-07-05 17:31:45 +08:00
|
|
|
id 'io.spring.dependency-management' version '1.1.5'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'dev.surl'
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-09 17:36:20 +08:00
|
|
|
kotlin {
|
|
|
|
jvmToolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-05 17:31:45 +08:00
|
|
|
configurations {
|
|
|
|
compileOnly {
|
|
|
|
extendsFrom annotationProcessor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 配置 Gradle 仓库
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
// 使用阿里云镜像源
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/jcenter' }
|
2024-07-09 17:36:20 +08:00
|
|
|
maven { url "https://maven.noelware.org" }
|
2024-07-05 17:31:45 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
2024-07-09 17:36:20 +08:00
|
|
|
implementation("org.jetbrains.exposed:exposed-spring-boot-starter:0.52.0")
|
|
|
|
implementation 'commons-codec:commons-codec'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
|
|
implementation "org.noelware.charted.snowflake:snowflake:0.1-beta"
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
2024-07-10 20:00:06 +08:00
|
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
|
2024-07-12 17:43:11 +08:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
2024-07-09 17:36:20 +08:00
|
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
2024-07-05 17:31:45 +08:00
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
2024-07-09 17:36:20 +08:00
|
|
|
runtimeOnly 'org.postgresql:postgresql'
|
2024-07-10 20:00:06 +08:00
|
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
|
|
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
|
2024-07-05 17:31:45 +08:00
|
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
|
|
}
|
|
|
|
|
2024-07-17 22:34:59 +08:00
|
|
|
test {
|
2024-07-05 17:31:45 +08:00
|
|
|
useJUnitPlatform()
|
2024-07-17 22:34:59 +08:00
|
|
|
}
|