2024-11-18 15:30:31 +08:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'org.springframework.boot' version '3.3.5'
|
|
|
|
id 'io.spring.dependency-management' version '1.1.6'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'com.lk'
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
|
|
runtimeOnly 'com.h2database:h2'
|
2024-12-05 12:29:40 +08:00
|
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.5'
|
|
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.5'
|
|
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.5'
|
|
|
|
|
2024-11-18 15:30:31 +08:00
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('test') {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|