[QueryDSL 의존성 변경]

This commit is contained in:
2025-08-13 10:11:54 +09:00
parent a8e1a15b1d
commit 51a29996f5

View File

@@ -1,9 +1,3 @@
buildscript {
ext {
queryDslVersion = "5.0.0"
}
}
plugins { plugins {
id 'java' id 'java'
id 'org.springframework.boot' version '3.5.4' id 'org.springframework.boot' version '3.5.4'
@@ -30,41 +24,41 @@ repositories {
} }
dependencies { dependencies {
// 개발용 의존성 추가
developmentOnly 'org.springframework.boot:spring-boot-devtools' developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// PostgreSQL JDBC 드라이버 // PostgreSQL JDBC
runtimeOnly 'org.postgresql:postgresql' runtimeOnly 'org.postgresql:postgresql'
implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-web'
// Spring Security 추가 // Spring Securit
implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-security'
// Validation 추가 // Validation
implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-validation'
// MapStruct 추가 (안정적인 버전으로 수정) // MapStruct
implementation 'org.mapstruct:mapstruct:1.5.5.Final' implementation 'org.mapstruct:mapstruct:1.5.5.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final' annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'
// MyBatis 추가 // MyBatis
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3' implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
// jwt // jwt
implementation 'io.jsonwebtoken:jjwt-api:0.12.5' implementation 'io.jsonwebtoken:jjwt-api:0.12.5'
// lombok
compileOnly 'org.projectlombok:lombok' compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok'
// Lombok과 MapStruct 함께 사용을 위한 바인딩
annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0' annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// querydsl // querydsl
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}:jakarta" implementation 'io.github.openfeign.querydsl:querydsl-jpa:6.11'
annotationProcessor "com.querydsl:querydsl-apt:${queryDslVersion}:jakarta" annotationProcessor 'io.github.openfeign.querydsl:querydsl-apt:6.11:jpa'
annotationProcessor "jakarta.annotation:jakarta.annotation-api" annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
annotationProcessor "jakarta.persistence:jakarta.persistence-api" annotationProcessor 'jakarta.persistence:jakarta.persistence-api'
// p6spy // p6spy
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.0' implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.0'
} }
@@ -74,16 +68,10 @@ tasks.named('test') {
} }
// querydsl // querydsl
def querydslDir = "$buildDir/generated/querydsl" def querydslSrcDir = 'src/main/generated'
clean {
sourceSets { delete file(querydslSrcDir)
main.java.srcDirs += [ querydslDir ]
}
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(querydslDir)
}
clean.doLast {
file(querydslDir).deleteDir()
} }
tasks.withType(JavaCompile).configureEach {
options.generatedSourceOutputDirectory = file(querydslSrcDir)
}