forked from ssginc-be/pjt3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (52 loc) · 2.03 KB
/
build.gradle
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.2'
id 'io.spring.dependency-management' version '1.1.7'
}
bootJar.enabled = false // 빌드시 루트 모듈(pjt3)은 bootJar 사용x
allprojects { // 루트 포함 모든 모듈들에 이 설정을 적용
group 'com.ssginc'
version '1.0.0-beta.1'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
}
subprojects { // 모든 하위 모듈들에 이 설정을 적용
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
bootJar.enabled = true // 서브 모듈은 bootJar만 사용
jar.enabled = false
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
//************************************************************************
// Lombok
//************************************************************************
// vo(dto) 자동 생성 기능 + log를 위한 Log4J, Slf4j를 사용할 수 있게 함.
implementation 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
//************************************************************************
// Logback encoder for Logstash
//************************************************************************
implementation 'net.logstash.logback:logstash-logback-encoder:8.0'
//************************************************************************
// Spring Boot Test
//************************************************************************
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.register("prepareKotlinBuildScriptModel"){}
}