Skip to content

Commit

Permalink
✨ Practice(#6) : 기본 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Ssamssamukja committed Nov 7, 2024
1 parent b1f89e0 commit 5758a2d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6'
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
id 'antlr'
}

group = 'umc'
Expand Down Expand Up @@ -31,8 +33,46 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

// queryDSL
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
}

sourceSets {
main {
java {
srcDirs = ['src/main/java', 'src/main/resources', 'src/main/generated']
}
}
}


tasks.named('test') {
useJUnitPlatform()
}

// Querydsl 설정부
def generated = 'src/main/generated'

querydsl {
jpa = true
querydslSourcesDir = generated
}

sourceSets {
main.java.srcDir generated
}

compileQuerydsl{
options.annotationProcessorPath = configurations.querydsl
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}

0 comments on commit 5758a2d

Please sign in to comment.