-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
118 lines (100 loc) · 3.45 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.3'
id 'io.spring.dependency-management' version '1.1.0'
id 'checkstyle'
id 'jacoco'
id 'org.sonarqube' version '3.5.0.2730'
id "org.asciidoctor.jvm.convert" version "3.3.2"
id 'com.google.cloud.tools.jib' version '3.1.4'
}
group = 'com.dnd'
version = '1.0.1'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
asciidoctorExt
}
repositories {
mavenCentral()
}
dependencies {
// spring boot
implementation 'org.springframework.boot:spring-boot-starter-web:3.0.3'
implementation 'org.springframework.boot:spring-boot-starter-jdbc:3.0.3'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:3.0.3'
implementation 'org.springframework.boot:spring-boot-starter-data-redis:3.0.3'
implementation 'org.springframework.boot:spring-boot-starter-security:3.0.3'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client:3.0.3'
implementation 'org.springframework.boot:spring-boot-starter-validation:3.0.3'
implementation 'org.springframework.boot:spring-boot-starter-actuator:3.0.3'
testImplementation 'org.springframework.boot:spring-boot-starter-test:3.0.3'
testImplementation 'org.springframework.security:spring-security-test:6.0.2'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:3.0.0'
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor:3.0.0'
// lombok
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
// database
runtimeOnly 'com.mysql:mysql-connector-j:8.0.31'
runtimeOnly 'com.h2database:h2:2.1.214'
// flyway
implementation 'org.flywaydb:flyway-mysql:9.11.0'
// jwt
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
// AWS
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.232'
}
checkstyle {
maxWarnings = 0
toolVersion = "10.4"
}
tasks.named('test') {
useJUnitPlatform()
outputs.dir snippetsDir
}
ext {
snippetsDir = file('build/generated-snippets')
}
asciidoctor {
configurations 'asciidoctorExt'
baseDirFollowsSourceFile()
inputs.dir snippetsDir
dependsOn test
}
jacocoTestReport {
reports {
xml.enabled true
}
}
sonar {
properties {
property 'sonar.host.url', 'https://sonarcloud.io'
property 'sonar.organization', 'dnd-side-project'
property 'sonar.projectKey', 'dnd-side-project_dnd-8th-8-backend'
property 'sonar.java.checkstyle.reportPaths', 'build/reports/checkstyle/main.xml'
property 'sonar.coverage.jacoco.xmlReportPaths', 'build/reports/jacoco/test/jacocoTestReport.xml'
}
}
jib {
from {
image = 'eclipse-temurin:17-jdk-alpine'
}
to {
image = '339286557484.dkr.ecr.ap-northeast-2.amazonaws.com/weddingmap'
tags = ['latest', "${project.version}".toString()]
credHelper = 'ecr-login'
}
container {
creationTime = 'USE_CURRENT_TIMESTAMP'
jvmFlags = ['-Dspring.profiles.active=prod', '-XX:+UseContainerSupport', '-Dserver.port=8080', '-Dfile.encoding=UTF-8']
ports = ['8080']
user = 'nobody:nogroup'
}
}