-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (57 loc) · 1.61 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
plugins {
id 'org.springframework.boot' version '2.6.2' //2.6.2에서 변경
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
//제일 상위 프로젝트에는 build 할 jar 파일이 없으므로 꺼주기
bootJar {
enabled(false)
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
sourceCompatibility = "11"
targetCompatibility = "11"
//아래 프로젝트들 공통 설정 : subprojects
subprojects {
group 'com.jy.study'
version '1.0-SNAPSHOT' //빌드시 jar 파일 이름에 들어가게 됨.
sourceCompatibility = "11"
targetCompatibility = "11"
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2021.0.3") //2021.0.3 에서 변경
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: "io.spring.dependency-management"
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
//롬복
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.7.0'
}
test {
exclude('**/*')
useJUnitPlatform()
}
}
allprojects {
tasks.withType(JavaCompile) {
sourceCompatibility = '11'
targetCompatibility = '11'
}
}