提问人:강찬욱 提问时间:11/10/2023 更新时间:11/10/2023 访问量:9
QureyDsl:没有在 Eclipse 中使用 gradle 创建 Q 类 [Spring 2.x]
QureyDsl: didn't create Q class with gradle in Eclipse [Spring 2.x]
问:
build.gradle 似乎肯定有问题。但我什么也没抓到。我想我错过了什么。有 build.grable。
buildscript {
ext {
queryDslVersion = '5.0.0'
}
}
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.18-SNAPSHOT'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
group = 'dev.chanwook.springstudy'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '11'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation project(':domain')
implementation 'org.springframework.boot:spring-boot-starter-web'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// junit
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// Database
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
runtimeOnly 'com.h2database:h2'
// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
// Spring Security
implementation 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
// jjwt
implementation 'io.jsonwebtoken:jjwt-api:0.12.3'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.3'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.3'
// QueryDSL
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}"
annotationProcessor(
"javax.persistence:javax.persistence-api",
"javax.annotation:javax.annotation-api",
"com.querydsl:querydsl-apt:${queryDslVersion}:jpa")
// swagger
implementation 'org.springdoc:springdoc-openapi-ui:1.6.12'
}
tasks.named('test') {
useJUnitPlatform()
}
有趣的是,当我在 vscode 中打开这个项目时,Q 类是正常生成的。但我想要在 Eclipse 中。Plaese 对此问题的评论。揍你。
答: 暂无答案
评论