Skip to content

Commit

Permalink
chore: querydsl 의존성 추가
Browse files Browse the repository at this point in the history
Resolves: #38
  • Loading branch information
jiwon83 committed Oct 20, 2024
1 parent 8689bf2 commit 1c7b4c9
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 2 deletions.
26 changes: 25 additions & 1 deletion domain/jpa-calendar-domain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,28 @@ dependencies {
implementation project(':common')
implementation project(':domain:jpa-common')
implementation project(':domain:jpa-member-domain')
}


/* QueryDSL */
implementation('com.querydsl:querydsl-jpa:5.0.0:jakarta')
annotationProcessor('com.querydsl:querydsl-apt:5.0.0:jakarta')
annotationProcessor('jakarta.annotation:jakarta.annotation-api')
annotationProcessor('jakarta.persistence:jakarta.persistence-api')
}


/ QueryDSL Start /
def generated = "src/main/generated"

tasks.withType(JavaCompile).configureEach {
options.getGeneratedSourceOutputDirectory().set(file(generated))
}

sourceSets {
main.java.srcDirs += [generated]
}

clean {
delete file(generated)
}
/ QueryDSL End */
27 changes: 27 additions & 0 deletions domain/jpa-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,31 @@ dependencies {
api('org.springframework.boot:spring-boot-starter-data-jpa')

runtimeOnly('com.h2database:h2')

/* MapStruct */
api('org.mapstruct:mapstruct:1.5.5.Final')
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'

/* QueryDSL */
implementation('com.querydsl:querydsl-jpa:5.0.0:jakarta')
annotationProcessor('com.querydsl:querydsl-apt:5.0.0:jakarta')
annotationProcessor('jakarta.annotation:jakarta.annotation-api')
annotationProcessor('jakarta.persistence:jakarta.persistence-api')
}


/ QueryDSL Start /
def generated = "src/main/generated"

tasks.withType(JavaCompile).configureEach {
options.getGeneratedSourceOutputDirectory().set(file(generated))
}

sourceSets {
main.java.srcDirs += [generated]
}

clean {
delete file(generated)
}
/ QueryDSL End */
24 changes: 23 additions & 1 deletion domain/jpa-member-domain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,26 @@ dependencies {
implementation project(':domain:jpa-common')
implementation project(':common')

}
/* QueryDSL */
implementation('com.querydsl:querydsl-jpa:5.0.0:jakarta')
annotationProcessor('com.querydsl:querydsl-apt:5.0.0:jakarta')
annotationProcessor('jakarta.annotation:jakarta.annotation-api')
annotationProcessor('jakarta.persistence:jakarta.persistence-api')
}


/ QueryDSL Start /
def generated = "src/main/generated"

tasks.withType(JavaCompile).configureEach {
options.getGeneratedSourceOutputDirectory().set(file(generated))
}

sourceSets {
main.java.srcDirs += [generated]
}

clean {
delete file(generated)
}
/ QueryDSL End */

0 comments on commit 1c7b4c9

Please sign in to comment.