-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
100 lines (78 loc) · 3.07 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.4'
id 'io.spring.dependency-management' version '1.1.3'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'mysql:mysql-connector-java:8.0.32'
runtimeOnly 'com.mysql:mysql-connector-j'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
// security
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'com.auth0:java-jwt:4.4.0'
// queryDSL
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor 'com.querydsl:querydsl-apt:5.0.0:jakarta'
annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
annotationProcessor 'jakarta.persistence:jakarta.persistence-api'
//testCode
implementation 'com.google.code.gson:gson:2.9.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.security:spring-security-test'
testImplementation 'com.h2database:h2'
// 동시성 처리
implementation 'org.redisson:redisson-spring-boot-starter:3.19.0'
// 디스코드 웹훅
implementation 'com.github.napstr:logback-discord-appender:1.0.0'
// 이메일 인증
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-mail', version: '3.0.5'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
// 알림
implementation 'com.google.firebase:firebase-admin:9.2.0'
implementation 'org.springframework.cloud:spring-cloud-gcp-starter:1.2.8.RELEASE'
// 인기글 캐싱
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.3'
// 로그
implementation 'org.springframework.boot:spring-boot-starter-aop'
// 크롤링
implementation 'org.jsoup:jsoup:1.15.3'
implementation 'org.seleniumhq.selenium:selenium-java:4.9.1'
// 모니터링
implementation 'org.springframework.boot:spring-boot-starter-actuator'
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
}
tasks.named('bootBuildImage') {
builder = 'paketobuildpacks/builder-jammy-base:latest'
}
tasks.named('test') {
useJUnitPlatform()
}
// Querydsl 추가, 자동 생성된 Q클래스 gradle clean으로 제거
def queryDslSrcDir = 'src/main/generated'
tasks.withType(JavaCompile) {
options.generatedSourceOutputDirectory = file(queryDslSrcDir)
}
clean {
delete file(queryDslSrcDir)
}