queryDSL Gradle 설정
다른 질문글을 보고 gradle 내용을 비교해봐도 차이를 모르겠습니다..
https://www.inflearn.com/questions/149157
이 분과 같은 상태인데 답변 내용을 봐도 해결을 못하겠습니다 ㅠ
buildscript {
dependencies {
classpath("gradle.plugin.com.ewerk.gradle.plugins:querydsl- plugin:1.0.10")
}
}
plugins {
id 'org.springframework.boot' version '2.5.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'jpabook'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
apply plugin: "com.ewerk.gradle.plugins.querydsl"
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.5.6'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation("org.junit.vintage:junit-vintage-engine") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
implementation 'com.querydsl:querydsl-jpa'
implementation 'com.querydsl:querydsl-apt'
}
def querydslDir = "$buildDir/generated/querydsl"
querydsl {
library = "com.querydsl:querydsl-apt"
jpa = true
querydslSourcesDir = querydslDir
}
sourceSets {
main {
java {
srcDirs = ['src/main/java', querydslDir]
}
}
}
configurations {
querydsl.extendsFrom compileClasspath
}
compileQuerydsl{
options.annotationProcessorPath = configurations.querydsl
}
test {
useJUnitPlatform()
}
답변 1
@JsonIgnore 이후 Internal Server Error가 발생하지 않습니다.
0
32
2
강의 관련 외 질문입니다.
0
91
2
SpringBoot4 + Hibernate7 모듈 등록 방법 공유
1
113
1
BeanCreationException
0
104
3
Update 후 UpdateMemberResponse 매핑할 때
0
66
1
트랜잭션을 사용 안 할 때 커넥션은 언제 가져오나요?
0
109
2
페이징 + 검색조건 관련해서 질문드립니다.
0
77
1
Query Dsl Q파일 질문입니다.
0
92
1
루트 쿼리라는것은
0
68
1
메서드를 분리하는 기준
0
76
1
findAllWithMemberDelivery 메서드 질문드립니다.
0
123
3
연관관계 매핑을 안 쓸 경우, 사용해야 하는 전략
0
97
2
fetch join과 영속화와 OSIV의 관계
0
101
2
Distinct 사용 전 결과에 대한 의문
0
124
2
레포지토리 계층에서의 트랜잭션에 대한 의문
0
65
1
영속성 컨텍스트 생명주기의 신기한 부분이 있습니다.
0
82
2
dto 필드 속 엔티티 여부
0
67
1
뷰템플릿 사용 시
0
86
2
Result 클래스 관련 질문
0
59
1
@PostConstruct 프록시 관련 질문드립니다
0
91
1
DTO 대신 Form 사용은 안되나요?
0
142
1
OSIV ON 상태일 때
0
102
1
fetch join VS fetch join 페이징 궁금증
0
192
2
양방향 연관관계 알아보는 법?
0
113
1





