Files
weiyu/modules/core/build.gradle
jack ning c47c6db2a5 update to 0.1.0
update to 0.1.0
2024-04-30 09:37:49 +08:00

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()
}