-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
130 lines (105 loc) · 3.42 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.4'
id 'io.spring.dependency-management' version '1.1.4'
id 'org.flywaydb.flyway' version '8.5.13'
id "org.sonarqube" version "4.4.1.3373"
}
task copySubmodule(type: Copy) {
copy {
from './secret'
include "application.yml"
into 'src/main/resources'
}
copy {
from './secret/dev'
include "application-dev.yml"
into 'src/main/resources'
}
copy {
from './secret/prod'
include "application-prod.yml"
into 'src/main/resources'
}
copy {
from './secret/test'
include "application-test.yml"
into 'src/test/resources'
rename("application-test.yml", "application.yml")
}
}
ext {
set('springCloudVersion', "2023.0.0")
}
group = 'com.eodya'
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'
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.mysql:mysql-connector-j'
annotationProcessor 'org.projectlombok:lombok'
//테스트 코드 관련
testRuntimeOnly 'com.h2database:h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
//JPA의 Spatial type -> MySQL point
implementation group: 'org.hibernate', name: 'hibernate-spatial', version: '6.4.1.Final'
//validation
implementation 'org.springframework.boot:spring-boot-starter-validation' // 추가
//OpenFeign
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:4.0.3'
//com.sun.xml.bind
implementation 'com.sun.xml.bind:jaxb-impl:4.0.1'
implementation 'com.sun.xml.bind:jaxb-core:4.0.1'
//javax.xml.bind
implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'
//aws 설정
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
//swagger 설정
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
// Spring Boot Configuration 설정
implementation 'org.springframework.boot:spring-boot-starter-validation'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
// Spring Boot Webflux 설정
implementation 'org.springframework.boot:spring-boot-starter-webflux'
//jwt 토큰 생성 및 검증
implementation 'io.jsonwebtoken:jjwt-api:0.12.1'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.1'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.1'
//redis 설정
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}
sonar {
properties {
property "sonar.projectKey", "eodya_eodya-backend"
property "sonar.organization", "eodya-backend"
property "sonar.host.url", "https://sonarcloud.io"
}
}
sonarqube {
properties {
property "sonar.gradle.skipCompile", "true"
}
}