surl/build.gradle

70 lines
1.9 KiB
Groovy
Raw Normal View History

2024-07-05 17:31:45 +08:00
plugins {
2024-08-06 07:43:58 +08:00
id 'java' apply true
id 'org.jetbrains.kotlin.jvm' version "${kotlin_version}" apply true
id 'org.springframework.boot' version "${spring_boot_version}" apply true
id 'io.spring.dependency-management' version "${spring_dependency_management_version}" apply true
2024-07-05 17:31:45 +08:00
}
group = 'dev.surl'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
kotlin {
jvmToolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
2024-07-05 17:31:45 +08:00
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
2024-08-15 14:37:56 +08:00
tasks.register('deploy') {
dependsOn bootJar
2024-08-13 15:57:53 +08:00
doFirst {
exec {
commandLine 'docker', 'compose', 'down'
}
}
doLast {
exec {
commandLine 'docker', 'compose', 'up', '-d'
}
}
}
2024-07-05 17:31:45 +08:00
// 配置 Gradle 仓库
allprojects {
repositories {
2024-09-04 13:52:22 +08:00
maven { url 'https://repo.vviipp.vip/maven2/' }
2024-07-05 17:31:45 +08:00
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
2024-08-07 10:09:16 +08:00
implementation 'org.springframework.boot:spring-boot-starter-aop'
2024-08-05 14:41:44 +08:00
implementation "org.jetbrains.exposed:exposed-spring-boot-starter:${exposed_version}"
implementation 'commons-codec:commons-codec'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-security'
2024-08-05 14:41:44 +08:00
implementation "io.jsonwebtoken:jjwt-api:${jwt_version}"
2024-07-12 17:43:11 +08:00
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
testImplementation 'org.springframework.security:spring-security-test'
2024-07-05 17:31:45 +08:00
testImplementation 'org.springframework.boot:spring-boot-starter-test'
runtimeOnly 'org.postgresql:postgresql'
2024-08-05 14:41:44 +08:00
runtimeOnly "io.jsonwebtoken:jjwt-impl:${jwt_version}"
runtimeOnly "io.jsonwebtoken:jjwt-jackson:${jwt_version}"
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-08-13 15:57:53 +08:00
enabled = false
2024-07-17 22:34:59 +08:00
}