-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
130 lines (103 loc) · 3.32 KB
/
build.gradle.kts
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
plugins {
kotlin("jvm") version "1.9.25"
kotlin("kapt") version "1.9.25"
kotlin("plugin.spring") version "1.9.25"
id("org.springframework.boot") version "3.3.4"
id("io.spring.dependency-management") version "1.1.6"
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
kotlin("plugin.jpa") version "1.9.25"
idea
}
sourceSets {
main {
java {
srcDirs("src/main/kotlin")
}
}
}
group = "com.pravo"
version = "0.0.1-SNAPSHOT"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
}
extra["springCloudVersion"] = "2023.0.2"
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
}
}
dependencies {
implementation("org.springframework.cloud:spring-cloud-starter-openfeign")
// Spring Web
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("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
developmentOnly("org.springframework.boot:spring-boot-devtools")
// Health Check
implementation("org.springframework.boot:spring-boot-starter-actuator")
// Lombok
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
// MySQL
runtimeOnly("com.mysql:mysql-connector-j")
// H2
runtimeOnly("com.h2database:h2")
// 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")
// Redis
implementation("org.springframework.boot:spring-boot-starter-data-redis")
// Webflux
implementation("org.springframework.boot:spring-boot-starter-webflux")
// Test & Validation
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
// QueryDSL
implementation("com.querydsl:querydsl-jpa:5.0.0:jakarta")
kapt("com.querydsl:querydsl-apt:5.0.0:jakarta")
kapt("jakarta.persistence:jakarta.persistence-api")
// Swagger
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
// S3
implementation("org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE")
// Discord
implementation("com.github.napstr:logback-discord-appender:1.0.0")
// fcm
implementation("com.google.firebase:firebase-admin:9.4.1")
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
idea {
module {
val kaptMain = file("build/generated/source/kapt/main")
sourceDirs.add(kaptMain)
generatedSourceDirs.add(kaptMain)
}
}
ktlint {
ignoreFailures.set(false)
reporters { reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.JSON) }
}