-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
59 lines (50 loc) · 1.18 KB
/
build.gradle.kts
File metadata and controls
59 lines (50 loc) · 1.18 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
48
49
50
51
52
53
54
55
56
57
58
59
plugins {
java
id("org.springframework.boot") version "3.4.2"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
// 루트 프로젝트, 서브 프로젝트 모두 설정
allprojects {
group = "com.mbtips"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
}
// 하위 프로젝트 설정
subprojects {
apply {
plugin("java")
plugin("org.springframework.boot")
plugin("io.spring.dependency-management")
plugin("java-library")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
dependencies {
// lombok
implementation("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
// TEST
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
}
tasks.bootJar {
archiveBaseName.set("embitips") // JAR 이름
archiveVersion.set("0.0.1") // 버전
mainClass.set("api.com.mbtips.MbtipsApplication")
}
tasks.jar {
enabled = false
}