Skip to content

Commit

Permalink
feat!: querydsl 라이브러리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
donghyun0304 committed Jan 22, 2024
1 parent dd32de3 commit 64659d7
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id 'org.springframework.boot' version '2.7.10'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'checkstyle'
//querydsl 추가
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
}

group = 'com.cafegory'
Expand Down Expand Up @@ -40,6 +42,11 @@ dependencies {

implementation 'com.h2database:h2'

//querydsl 추가
implementation 'com.querydsl:querydsl-jpa'
implementation 'com.querydsl:querydsl-jpa:5.0.0'
implementation 'com.querydsl:querydsl-apt:5.0.0'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'

Expand Down Expand Up @@ -67,4 +74,21 @@ checkstyle {
}

checkstyleMain.source = fileTree('src/main/java')
checkstyleTest.source = fileTree('src/test/java')
checkstyleTest.source = fileTree('src/test/java')

//querydsl 추가 시작
def querydslDir = "$buildDir/generated/querydsl"
querydsl {
jpa = true
querydslSourcesDir = querydslDir
}
sourceSets {
main.java.srcDir querydslDir
}
configurations {
querydsl.extendsFrom compileClasspath
}
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
}
//querydsl 추가 끝

0 comments on commit 64659d7

Please sign in to comment.