55 lines
1.9 KiB
Groovy
55 lines
1.9 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.2.3'
|
|
id 'io.spring.dependency-management' version '1.1.4'
|
|
}
|
|
|
|
group = 'com.krt.flower'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
sourceCompatibility = '17'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
|
|
//SpringBoot 3.x버전 이상에서는 gradle openapi starter-webmvc 붙은걸로 써야 함
|
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
|
|
|
|
//jwt
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
|
|
implementation 'io.jsonwebtoken:jjwt-impl:0.11.5'
|
|
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.5'
|
|
|
|
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.springframework.security:spring-security-test'
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
|
|
// ⭐ Spring boot 3.x이상에서 QueryDsl 패키지를 정의하는 방법
|
|
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
|
|
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
|
|
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
|
|
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
|
|
// -- QueryDSL ---
|
|
|
|
// -- WebSocket --
|
|
implementation 'org.springframework.boot:spring-boot-starter-websocket' // 스프링에서 제공하는 웹소켓
|
|
// implementation 'org.webjars:sockjs-client:1.1.2' // sockjs
|
|
// implementation 'org.webjars:stomp-websocket:2.3.3-1' // stomp
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|