-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
112 lines (95 loc) · 3.89 KB
/
Copy pathbuild.gradle
File metadata and controls
112 lines (95 loc) · 3.89 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
104
105
106
107
108
109
110
111
112
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.1'
id 'io.spring.dependency-management' version '1.1.7'
id 'com.epages.restdocs-api-spec' version '0.19.4'
}
group = 'kr.ontherec'
version = '0.3.0-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
implementation {
exclude group: 'ch.qos.logback'
}
}
repositories {
mavenCentral()
}
dependencies {
// spring boot
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
// db
runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'
// implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
// implementation 'org.flywaydb:flyway-core'
// implementation 'org.flywaydb:flyway-mysql'
// security
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
// test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testCompileOnly 'org.assertj:assertj-core'
testImplementation 'io.rest-assured:rest-assured'
testImplementation 'org.testcontainers:testcontainers:1.20.4'
testImplementation 'org.testcontainers:junit-jupiter:1.20.4'
testImplementation 'org.testcontainers:mysql'
testImplementation 'com.tngtech.archunit:archunit-junit5-api:1.4.0'
testRuntimeOnly 'com.tngtech.archunit:archunit-junit5-engine:1.4.0'
// docs
testImplementation 'org.springframework.restdocs:spring-restdocs-restassured:3.0.3'
testImplementation 'com.epages:restdocs-api-spec-restassured:0.19.4'
// aws
implementation 'software.amazon.awssdk:s3:2.30.38'
implementation platform("io.awspring.cloud:spring-cloud-aws-dependencies:3.3.0")
implementation 'io.awspring.cloud:spring-cloud-aws-starter'
implementation 'io.awspring.cloud:spring-cloud-aws-starter-s3'
// socketio
implementation("com.corundumstudio.socketio:netty-socketio:2.0.13")
// logging
implementation 'org.tinylog:tinylog-api:2.7.0'
implementation 'org.tinylog:tinylog-impl:2.7.0'
implementation 'org.tinylog:slf4j-tinylog:2.7.0'
// dev
implementation 'com.querydsl:querydsl-jpa:5.1.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
annotationProcessor 'jakarta.persistence:jakarta.persistence-api'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'org.mapstruct:mapstruct:1.6.3'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.6.3'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
}
tasks.named('test') {
useJUnitPlatform()
}
openapi3 {
server = 'https://api.ontherec.live'
title = 'On The Record API Server'
description = '개발 서버에서 제공되는 On The Record API 서버의 문서 입니다. 상단 URL 의 서버를 변경하여, 해당 서버의 문서를 확인할 수 있습니다.'
version = '0.3.0'
format = 'json'
oauth2SecuritySchemeDefinition = {
flows = ['authorizationCode']
tokenUrl = 'https://accounts.ontherec.live/oauth2/token'
authorizationUrl = 'https://accounts.ontherec.live/oauth2/authroize'
}
}
tasks.register('docs', Copy) {
dependsOn 'openapi3'
delete 'src/main/resources/static/openapi3.json'
from file("build/api-spec")
into file("src/main/resources/static")
}