45 lines
1.2 KiB
Groovy
45 lines
1.2 KiB
Groovy
|
|
plugins {
|
|||
|
|
id 'java'
|
|||
|
|
id 'org.springframework.boot' version '3.2.1'
|
|||
|
|
id 'io.spring.dependency-management' version '1.1.4'
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
group = 'com.realtime'
|
|||
|
|
version = '0.0.1-SNAPSHOT'
|
|||
|
|
|
|||
|
|
java {
|
|||
|
|
sourceCompatibility = '17'
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
configurations {
|
|||
|
|
compileOnly {
|
|||
|
|
extendsFrom annotationProcessor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
repositories {
|
|||
|
|
mavenCentral()
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
dependencies {
|
|||
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
|||
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|||
|
|
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
|
|||
|
|
compileOnly 'org.projectlombok:lombok'
|
|||
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|||
|
|
runtimeOnly 'com.mysql:mysql-connector-j'
|
|||
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|||
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|||
|
|
testImplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter-test:3.0.3'
|
|||
|
|
|
|||
|
|
// Sa-Token 权限认证,在线文档:https://sa-token.cc
|
|||
|
|
implementation 'cn.dev33:sa-token-spring-boot3-starter:1.37.0'
|
|||
|
|
|
|||
|
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
tasks.named('test') {
|
|||
|
|
useJUnitPlatform()
|
|||
|
|
}
|