-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (58 loc) · 2.2 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.1'
id 'io.spring.dependency-management' version '1.1.4'
}
group = 'com.nainga'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.mysql:mysql-connector-j'
annotationProcessor 'org.projectlombok:lombok'
// 테스트 설정
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation group: 'org.hibernate', name: 'hibernate-spatial', version: '6.4.1.Final' //Geometry 사용을 위해 추가
testRuntimeOnly 'com.h2database:h2'
// Excel file을 순수 Java로 처리하기 위한 Apache POI import
implementation group: 'org.apache.poi', name: 'poi', version: '5.0.0'
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '5.0.0'
// 확장자를 읽어들이기 위해 추가
implementation group: 'commons-io', name: 'commons-io', version: '2.4'
// for GCS
implementation group: 'org.springframework.cloud', name: 'spring-cloud-gcp-starter', version: '1.2.8.RELEASE'
implementation group: 'org.springframework.cloud', name: 'spring-cloud-gcp-storage', version: '1.2.8.RELEASE'
// for JMX 모니터링
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// for /actuator/prometheus 엔드포인트 제공을 받기위한 의존성 추가
implementation 'io.micrometer:micrometer-registry-prometheus'
// JsonParser를 사용하기 위해 추가
dependencies { implementation 'com.google.code.gson:gson:2.8.8' }
//spring doc 추가
dependencies {
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
}
}
test {
systemProperties = System.properties
}
// spring 2.6 부터는 빌드시 plain.jar 이 생기는데 이를 만들지 않는 설정, 해당 jar 을 기반으로 이미지 생성하면 안되기때문
jar {
enabled = false
}
tasks.named('test') {
useJUnitPlatform()
}