-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
47 lines (41 loc) · 1.08 KB
/
build.gradle
File metadata and controls
47 lines (41 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* 루트 프로젝트 빌드 설정
* - 멀티 모듈 구조 (monorepo, 단일 배포 단위)
*/
plugins {
id 'java'
id 'org.springframework.boot' version "${springBootVersion}" apply false
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}" apply false
}
// 모든 모듈의 공통 메타데이터
allprojects {
group = "${projectGroup}"
version = "${applicationVersion}"
}
// 모든 서브 모듈의 공통 설정
subprojects {
// 모든 모듈에 플러그인 적용
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
// Java 설정
java {
toolchain {
languageVersion = JavaLanguageVersion.of("${javaVersion}")
}
}
// Lombok 설정
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
// 테스트 설정
tasks.named('test') {
useJUnitPlatform()
}
}
// 루트 프로젝트 자체는 빌드하지 않음
tasks.named('jar') {
enabled = false
}