Spring Plus 프로젝트

김윤서·2024년 10월 11일
0

GitHub

트러블 슈팅

오류 메세지

> Task :compileJava FAILED
1 actionable task: 1 executed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.querydsl:querydsl-apt:jpa.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/querydsl/querydsl-apt/jpa/querydsl-apt-jpa.pom
     Required by:
         project :

* Try:
> If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

요약 : Gradle에서 QueryDSL의 querydsl-apt 의존성을 찾을 수 없어서 발생한 것

해결 방법 : build.gradle 파일에 querydsl 관련 의존성을 추가

    implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
    annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"

0개의 댓글