-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
137 lines (112 loc) · 4.5 KB
/
build.gradle.kts
File metadata and controls
137 lines (112 loc) · 4.5 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.2.3"
id("io.spring.dependency-management") version "1.1.4"
kotlin("jvm") version "1.9.22"
kotlin("plugin.spring") version "1.9.22"
kotlin("plugin.jpa") version "1.9.22"
kotlin("plugin.noarg") version "1.9.22"
kotlin("kapt") version "1.9.22"
}
noArg {
annotation("jakarta.persistence.Entity")
annotation("jakarta.persistence.MappedSuperclass")
annotation("jakarta.persistence.Embeddable")
}
allOpen {
annotation("jakarta.persistence.Entity")
annotation("jakarta.persistence.MappedSuperclass")
annotation("jakarta.persistence.Embeddable")
}
group = "kr.zziririt"
version = "1.1.2-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_17
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
val swaggerVersion = "2.2.0"
val caffeineVersion = "3.1.8"
val queryDslVersion = "5.0.0"
val springCloudStarterAwsVersion = "2.0.1.RELEASE"
val awsSesVersion = "1.0.0"
val okhttp3Version = "5.0.0-alpha.11"
val coroutineVersion = "1.6.4"
val kotlinLoggerVersion = "6.0.2"
val dotEnvVersion = "4.0.0"
val jjwtVersion = "0.12.3"
val testH2Version = "2.2.220"
val kotestVersion = "5.5.5"
val kotestExtensionVersion = "1.1.3"
val mockkVersion = "1.13.8"
val redissonVersion = "3.27.2"
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$swaggerVersion")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.springframework.boot:spring-boot-starter-mail")
runtimeOnly("com.h2database:h2")
runtimeOnly("org.postgresql:postgresql")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
//aop
implementation("org.springframework.boot:spring-boot-starter-aop")
//cache
implementation("org.springframework.boot:spring-boot-starter-cache")
//caffeine
implementation("com.github.ben-manes.caffeine:caffeine:$caffeineVersion")
//redis
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("org.redisson:redisson:$redissonVersion")
//querydsl
implementation("com.querydsl:querydsl-jpa:$queryDslVersion:jakarta")
kapt("com.querydsl:querydsl-apt:$queryDslVersion:jakarta")
//aws
implementation("org.springframework.cloud:spring-cloud-starter-aws:$springCloudStarterAwsVersion")
//aws ses
implementation("aws.sdk.kotlin:ses:$awsSesVersion")
implementation("com.squareup.okhttp3:okhttp:$okhttp3Version") // okhttp3 관련 NoSuchMethodError 이슈로 업그레이드
//coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion")
runtimeOnly("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$coroutineVersion")
//log
implementation("io.github.oshai:kotlin-logging-jvm:$kotlinLoggerVersion")
//.env
implementation("me.paulschwarz:spring-dotenv:$dotEnvVersion")
//jwt
implementation("io.jsonwebtoken:jjwt-api:$jjwtVersion")
runtimeOnly("io.jsonwebtoken:jjwt-impl:$jjwtVersion")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:$jjwtVersion")
//security
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
implementation("org.springframework.boot:spring-boot-starter-security")
//test
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("com.h2database:h2:$testH2Version")
//kotest
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("io.kotest.extensions:kotest-extensions-spring:$kotestExtensionVersion")
testImplementation("io.mockk:mockk:$mockkVersion")
//prometheus
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.micrometer:micrometer-registry-prometheus")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}