-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
103 lines (85 loc) · 3.19 KB
/
build.gradle
File metadata and controls
103 lines (85 loc) · 3.19 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
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.5'
id 'io.spring.dependency-management' version '1.1.4'
id 'org.flywaydb.flyway' version '9.16.3'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// Web
implementation 'org.springframework.boot:spring-boot-starter-web'
// DataBase
implementation 'com.mysql:mysql-connector-j'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'
runtimeOnly 'com.h2database:h2'
// QueryDSL
implementation 'io.github.openfeign.querydsl:querydsl-jpa:6.11'
annotationProcessor 'io.github.openfeign.querydsl:querydsl-apt:6.11:jpa'
annotationProcessor 'jakarta.persistence:jakarta.persistence-api'
annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
// Security
implementation 'org.springframework.security:spring-security-config'
implementation 'org.springframework.security:spring-security-web'
implementation 'io.jsonwebtoken:jjwt:0.9.1'
runtimeOnly 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359' // for jjwt
// Monitoring
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation 'io.sentry:sentry-spring-boot-starter-jakarta:7.5.0'
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// Test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.testcontainers:testcontainers:2.0.2'
testImplementation 'org.testcontainers:testcontainers-junit-jupiter:2.0.2'
testImplementation 'org.testcontainers:testcontainers-mysql:2.0.2'
testImplementation 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.awaitility:awaitility:4.2.0'
// Etc
implementation platform('software.amazon.awssdk:bom:2.41.4')
implementation 'software.amazon.awssdk:s3'
implementation 'io.awspring.cloud:spring-cloud-aws-starter-parameter-store:3.0.4'
implementation 'org.hibernate.validator:hibernate-validator'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
// Database Proxy
implementation 'net.ttddyy.observation:datasource-micrometer:1.2.0'
}
tasks.named('test', Test) {
useJUnitPlatform()
}
// To include QueryDLS classes in compile classpath
sourceSets {
main.java.srcDirs += ['build/generated/sources/annotationProcessor/java/main']
}
// build 단계에서 flyway 검증
flyway {
url = 'jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1'
user = 'sa'
password = ''
locations = ['filesystem:src/main/resources/db/migration']
validateMigrationNaming = true
ignoreMigrationPatterns = ['*:pending']
}
tasks.named('build') {
dependsOn 'flywayValidate'
}
tasks.named('bootJar') {
dependsOn 'flywayValidate'
}