querydsl 설정관련 질문드립니다.
Jhipster 로 gradle 템플릿 프로젝트 만들어서 dependencies 설정 변경하고 테스트 해보니 잘 되네요. 한번 비교해서 적용해보세요.. 플러그인 설정은 따로 안했습니다. gradle 버전은 6.0 입니다. dependencies { // import JHipster dependencies BOM implementation platform (" io.github.jhipster:jhipster-dependencies: $ { jhipster_dependencies_version }" ) // Use ", version: jhipster_dependencies_version, changing: true" if you want // to use a SNAPSHOT release instead of a stable release implementation group : "io.github.jhipster" , name : "jhipster-framework" implementation "org.springframework.boot:spring-boot-starter-cache" implementation "io.dropwizard.metrics:metrics-core" implementation "io.micrometer:micrometer-registry-prometheus" implementation "net.logstash.logback:logstash-logback-encoder" implementation "com.fasterxml.jackson.datatype:jackson-datatype-hppc" implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" implementation "com.fasterxml.jackson.datatype:jackson-datatype-hibernate5" implementation "com.fasterxml.jackson.core:jackson-annotations" implementation "com.fasterxml.jackson.core:jackson-databind" implementation "com.fasterxml.jackson.module:jackson-module-afterburner" implementation "javax.cache:cache-api" implementation "org.hibernate:hibernate-core" implementation "com.zaxxer:HikariCP" implementation "org.apache.commons:commons-lang3" implementation "commons-io:commons-io" implementation "javax.transaction:javax.transaction-api" implementation "org.ehcache:ehcache" implementation "org.hibernate:hibernate-entitymanager" implementation "org.hibernate.validator:hibernate-validator" implementation "org.liquibase:liquibase-core" liquibaseRuntime "org.liquibase:liquibase-core" liquibaseRuntime " org.liquibase.ext:liquibase-hibernate5: $ { liquibase_hibernate5_version }" liquibaseRuntime sourceSets.main. compileClasspath implementation "org.springframework.boot:spring-boot-loader-tools" implementation "org.springframework.boot:spring-boot-starter-mail" implementation "org.springframework.boot:spring-boot-starter-logging" implementation "org.springframework.boot:spring-boot-starter-actuator" implementation "org.springframework.boot:spring-boot-starter-aop" implementation "org.springframework.boot:spring-boot-starter-data-jpa" implementation "org.apache.kafka:kafka-clients" implementation "org.springframework.boot:spring-boot-starter-security" implementation ( "org.springframework.boot:spring-boot-starter-web" ) { exclude module : "spring-boot-starter-tomcat" } implementation "org.springframework.boot:spring-boot-starter-undertow" implementation "org.springframework.boot:spring-boot-starter-websocket" implementation "org.springframework.boot:spring-boot-starter-thymeleaf" implementation "org.zalando:problem-spring-web" implementation "org.springframework.boot:spring-boot-starter-cloud-connectors" implementation "org.springframework.security:spring-security-config" implementation "org.springframework.security:spring-security-data" implementation "org.springframework.security:spring-security-web" implementation "org.springframework.security:spring-security-messaging" implementation "io.jsonwebtoken:jjwt-api" runtimeOnly "io.jsonwebtoken:jjwt-impl" runtimeOnly "io.jsonwebtoken:jjwt-jackson" implementation ( "io.springfox:springfox-swagger2" ) { exclude module : "mapstruct" } implementation "io.springfox:springfox-bean-validators" implementation "org.postgresql:postgresql" liquibaseRuntime "org.postgresql:postgresql" implementation " org.mapstruct:mapstruct: $ { mapstruct_version }" annotationProcessor " org.glassfish.jaxb:jaxb-runtime: $ { jaxb_runtime_version }" annotationProcessor (" org.springframework.boot:spring-boot-configuration-processor: $ { spring_boot_version }") { exclude group : "com.vaadin.external.google" , module : "android-json" } testImplementation "com.jayway.jsonpath:json-path" testImplementation ( "org.springframework.boot:spring-boot-starter-test" ) { exclude module : "junit" exclude group : "com.vaadin.external.google" , module : "android-json" } testImplementation "org.springframework.security:spring-security-test" testImplementation "org.springframework.boot:spring-boot-test" testImplementation "org.junit.jupiter:junit-jupiter-engine" testImplementation " com.tngtech.archunit:archunit-junit5-api: $ { archunit_junit5_version }" testRuntimeOnly " com.tngtech.archunit:archunit-junit5-engine: $ { archunit_junit5_version }" testImplementation "org.assertj:assertj-core" testImplementation "junit:junit" testImplementation "org.mockito:mockito-core" testImplementation "org.hamcrest:hamcrest-library" testImplementation "com.h2database:h2" testImplementation "org.testcontainers:database-commons" testImplementation "org.testcontainers:kafka" //jhipster-needle-gradle-dependency - JHipster will add additional dependencies here // 여기서 변경 시작!! // querydsl 적용 compile ( "com.querydsl:querydsl-core:4.3.1" , "com.querydsl:querydsl-jpa:4.3.1" ) compileOnly "org.projectlombok:lombok:1.18.12" // annotationProcessor 순서 변경 annotationProcessor "com.querydsl:querydsl-apt:4.3.1:jpa" , "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final" , "javax.annotation:javax.annotation-api:1.3.2" , "org.projectlombok:lombok:1.18.12" , " org.mapstruct:mapstruct-processor: $ { mapstruct_version }" " org.hibernate:hibernate-jpamodelgen: $ { hibernate_version }" }