![[QueryDSL] annotationProcessorGeneratedSourcesDirectory deprecated](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Flqcfd%2FbtssbAgMoFq%2FMCnbXFXSZiD6uI9NY3pTC1%2Fimg.png)
[QueryDSL] annotationProcessorGeneratedSourcesDirectory deprecatedTech/트러블슈팅2023. 8. 26. 15:45
Table of Contents
728x90
728x90
스프링부트를 활용해 토이 프로젝트 개발을 진행하는 과정에서
어느날 갑자기 잘 되던 QueryDSL의 QDomain 경로 지정이 되지 않아서 테스트가 통과되지 않았다.
찾다찾다 build 설정에서 deprecated된 코드를 발견할 수 있었으며
컴파일 과정에서 JavaCompile유형의 작업의 속성을 변경해주는 코드로
설정한 querydslDir 변수의 경로에 파일을 생성하는 코드이다.
공식 Gradle 문서에 따르면 위의 annotationProcessorGeneratedSourcesDirectory는
generatedSourceOutputDirectory로 변경되었다고 한다.
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.compile.CompileOptions.html
CompileOptions - Gradle DSL Version 8.3
Main options for Java compilation. PropertyDescriptionannotationProcessorGeneratedSourcesDirectoryDeprecatedReplacedThe directory to place source files generated by annotation processors.annotationProcessorPathThe classpath to use to load annotation proces
docs.gradle.org
tasks.withType(JavaCompile) {
options.getGeneratedSourceOutputDirectory().set(file(querydslDir))
}
728x90
300x250
@mag1c :: 꾸준히 재밌게
2023.04 ~ 백엔드 개발자의 기록
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!