mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-15 19:58:00 +00:00
73 lines
2.9 KiB
Groovy
73 lines
2.9 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.2.0'
|
|
id 'io.spring.dependency-management' version '1.1.4'
|
|
}
|
|
|
|
group = 'com.bytedesk'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
sourceCompatibility = '17'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
//
|
|
compileOnly 'org.springframework.boot:spring-boot-starter-web'
|
|
compileOnly 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
|
//
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'com.mysql:mysql-connector-j'
|
|
//
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
|
// default username: user, password is on the console
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-rest
|
|
// https://spring.io/guides/tutorials/react-and-spring-data-rest/
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
|
|
|
|
// oauth2
|
|
// implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
|
|
// implementation 'org.springframework.security:spring-security-oauth2-authorization-server'
|
|
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
|
|
// https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5
|
|
implementation 'org.apache.httpcomponents.core5:httpcore5:5.2.4'
|
|
// https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5
|
|
implementation 'org.apache.httpcomponents.client5:httpclient5:5.3.1'
|
|
|
|
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.3'
|
|
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-impl
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.3'
|
|
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-jackson
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.3'
|
|
// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2
|
|
implementation 'com.alibaba.fastjson2:fastjson2:2.0.45'
|
|
// https://mvnrepository.com/artifact/org.modelmapper/modelmapper
|
|
implementation 'org.modelmapper:modelmapper:3.2.0'
|
|
|
|
// for api docs
|
|
// https://springdoc.org/
|
|
// https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui
|
|
// http://localhost:9003/swagger-ui/index.html
|
|
// http://localhost:9003/v3/api-docs
|
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
|
|
//
|
|
compileOnly 'org.projectlombok:lombok'
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|