Skip to content

Commit f70d962

Browse files
authored
Update build.gradle : 오류 수정
1 parent fc88db5 commit f70d962

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

build.gradle

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
plugins {
22
id 'java'
3-
id 'org.springframework.boot' version '3.2.5'//스웨거로 인해 버전 낮춤
3+
id 'org.springframework.boot' version '3.2.5' // 스웨거로 인해 버전 낮춤
44
id 'io.spring.dependency-management' version '1.1.7'
55
}
66

7-
ext {
8-
queryDslVersion = "5.0.0"
9-
}
10-
117
group = 'com.example'
128
version = '0.0.1-SNAPSHOT'
139

@@ -17,20 +13,27 @@ java {
1713
}
1814
}
1915

16+
// QueryDSL 버전 지정
17+
ext {
18+
queryDslVersion = "5.0.0"
19+
}
2020

21+
// 컴파일 전용 의존성 설정 (Lombok 등)
2122
configurations {
2223
compileOnly {
2324
extendsFrom annotationProcessor
2425
}
2526
}
2627

28+
// 저장소 설정
2729
repositories {
2830
mavenCentral()
2931

3032
// springdoc 2.5.0은 여기서 제공됨
3133
maven { url 'https://repo.spring.io/release' }
3234
}
3335

36+
// 의존성 설정
3437
dependencies {
3538
// Spring Boot
3639
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
@@ -66,7 +69,9 @@ dependencies {
6669
// Test
6770
testImplementation 'org.springframework.boot:spring-boot-starter-test'
6871
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
72+
}
6973

74+
// 테스트 설정 (JUnit 5)
7075
tasks.named('test') {
7176
useJUnitPlatform()
7277
}
@@ -87,8 +92,7 @@ sourceSets {
8792
}
8893
}
8994

95+
// QueryDSL 컴파일 옵션 설정
9096
tasks.withType(JavaCompile).configureEach {
9197
options.annotationProcessorGeneratedSourcesDirectory = file(querydslDir)
9298
}
93-
94-

0 commit comments

Comments
 (0)