ysk(0soo)
Lifealong
ysk(0soo)
전체 방문자
오늘
어제
  • 분류 전체보기 (238)
    • Java (50)
      • whiteship-java-study (11)
      • Java (28)
      • time (6)
    • Spring (68)
      • JPA (15)
      • Spring (1)
      • SpringBoot (1)
      • SpringMVC (6)
      • Spring Security (22)
      • Jdbc (1)
      • RestDocs (14)
      • log (6)
    • Kotlin (3)
    • Web (2)
      • nginx (1)
    • Database (14)
      • MySQL (5)
      • PostgreSQL (1)
      • SQL (1)
      • Redis (4)
    • C, C++ (0)
    • Git (1)
    • Docker (2)
    • Cloud (3)
      • AWS (3)
    • 도서, 강의 (0)
      • t5 (0)
    • 기타 (7)
      • 프로그래밍 (1)
    • 끄적끄적 (0)
    • CS (14)
      • 운영체제(OS) (2)
      • 자료구조(Data Structure) (9)
    • 하루한개 (12)
      • 우아한 테크코스-10분테코톡 (12)
    • 스터디 (12)
      • 클린 아키텍처- 로버트마틴 (2)
      • JPA 프로그래밍 스터디 (10)
    • 테스트 (34)
      • JUnit (19)
      • nGrinder (2)
      • JMeter (0)
    • Infra (3)
    • 프로그래머스 백엔드 데브코스 3기 (0)
    • 디자인 패턴 (3)
    • Issue (4)
    • system (1)
      • grafana (0)
      • Prometheus (0)

블로그 메뉴

  • 홈
  • 태그
  • 방명록
  • github

공지사항

인기 글

태그

  • 가상 스레드
  • java
  • UserDetailsService
  • mysql
  • restdocs enum
  • junit5
  • nginx basic auth
  • AuthenticationException
  • 동일성
  • AccessDecisionManager
  • jpa
  • FilterSecurityInterceptor
  • nGrinder
  • 트랜잭션
  • DataJpaTest
  • querydsl
  • AccessDecisionVoter 커스텀
  • 가상 스레드 예외 핸들링
  • VirtualThread Springboot
  • 동시성 제어
  • StructuredConcorrency
  • 인가(Authorization) 처리
  • scope value
  • 정규표현식
  • node exporter basic auth
  • LocalDateTime
  • 동등성
  • 구조화된 동시성
  • tree
  • restdocs custom

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
ysk(0soo)

Lifealong

QueryDSL 에러 - Execution failed for task ':compileQuerydsl', ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
Spring/JPA

QueryDSL 에러 - Execution failed for task ':compileQuerydsl', ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain

2023. 1. 18. 03:12

테스트코드 에러 - Execution failed for task ':compileQuerydsl'.

Task :compileQuerydsl FAILED

error: cannot find symbol

Execution failed for task ':compileQuerydsl'.

같은 에러 발생시에는 Preference -> Build.Execution, Deployment -> Build Tools -> gradle

  • build and run using : Intellij IDEA
  • Run tests using : Intellij IDEA

로 설정하고 다시 테스트하면 테스트가 통과한다.

 

 

오류: 기본 클래스 org.gradle.wrapper.GradleWrapperMain을(를) 찾거나 로드할 수 없습니다.
원인: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain

라는 에러 발생시에는 .gradle/wrapper/ 아래에 두 파일이 존재하지 않아서 그렇다.

  • gradle-wrapper.jar
  • gradle-wrapper.properties

 

gradle build 혹은 gradle wrap을 하지 않았으면 gradle-wrapper.jar이 누락되어 있으므로

gradle wrap 명령이 실행 후에 ./gradlew clean compileQuerydsl 을 실행한다

저작자표시 비영리 (새창열림)

'Spring > JPA' 카테고리의 다른 글

Querydsl Projection - with 1:N DTO 매핑 (프로젝션)  (0) 2023.01.31
QueryDSL 설정 - SpringBoot 2.7.X & SpringBoot 3.x 버전  (0) 2023.01.18
Jpa Insert, update delete 시 select query를 통한 먼저 조회하지 않는 방법.md  (1) 2023.01.18
Jpa Id 생성전략에 따른 동작 방식  (0) 2023.01.18
JPA Hibernate Id 생성 전략과 UUID 전략  (0) 2023.01.18
    'Spring/JPA' 카테고리의 다른 글
    • Querydsl Projection - with 1:N DTO 매핑 (프로젝션)
    • QueryDSL 설정 - SpringBoot 2.7.X & SpringBoot 3.x 버전
    • Jpa Insert, update delete 시 select query를 통한 먼저 조회하지 않는 방법.md
    • Jpa Id 생성전략에 따른 동작 방식
    ysk(0soo)
    ysk(0soo)
    백엔드 개발을 좋아합니다. java kotlin spring, infra 에 관심이 많습니다. email : kim206gh@naver.com github : https://github.com/devysk

    티스토리툴바