-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
107 lines (82 loc) · 3.21 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
plugins {
id("org.springframework.boot") version PluginVersions.SPRING_BOOT_VERSION
id("io.spring.dependency-management") version PluginVersions.DEPENDENCY_MANAGER_VERSION
kotlin("plugin.spring") version PluginVersions.SPRING_PLUGIN_VERSION
kotlin("plugin.jpa") version PluginVersions.JPA_PLUGIN_VERSION
kotlin("jvm") version PluginVersions.JVM_VERSION
kotlin("plugin.serialization") version "1.9.22"
kotlin("kapt") version PluginVersions.KAPT_VERSION
}
val snippetsDir by extra { file("build/generated-snippets")}
group = "xquare.app"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
ext {
set("springBootVersion", PluginVersions.SPRING_BOOT_VERSION)
}
dependencies {
implementation(Dependencies.KOTLIN_REFLECT)
implementation(Dependencies.KOTLIN_JDK)
implementation(Dependencies.JACKSON)
implementation(Dependencies.HEALTH_CHECKER)
implementation(Dependencies.SPRING_CLOUD)
implementation(Dependencies.SPRING_WEB)
implementation(Dependencies.OPEN_FEIGN)
implementation(Dependencies.FEIGN_HTTP)
implementation(Dependencies.SPRING_SECURITY)
implementation(Dependencies.JWT)
implementation(Dependencies.REDIS)
implementation(Dependencies.LOGGER)
implementation(Dependencies.SPRING_VALIDATION)
implementation(Dependencies.STARTER)
// web
implementation(Dependencies.SPRING_WEB)
// validation
implementation(Dependencies.SPRING_VALIDATION)
implementation(Dependencies.SPRING_TRANSACTION)
implementation(Dependencies.JWT)
// MySQL
implementation(Dependencies.MYSQL_CONNECTOR)
// jpa
implementation(Dependencies.SPRING_DATA_JPA)
// redis
implementation(Dependencies.REDIS)
implementation("org.redisson:redisson-spring-boot-starter:3.17.3")
implementation(Dependencies.ANNOTATION_PROCESSOR)
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
// vault
implementation("com.bettercloud:vault-java-driver:5.1.0")
// kubernetes
implementation("io.kubernetes:client-java:15.0.1")
implementation("software.amazon.awssdk:sts:2.17.64")
implementation("org.springframework.boot:spring-boot-starter-websocket:2.7.18")
// OpenTelemetry && gRPC
implementation(platform("org.springframework.boot:spring-boot-dependencies:${project.ext["springBootVersion"]}"))
implementation("io.opentelemetry.proto:opentelemetry-proto:1.3.2-alpha")
implementation("io.micrometer:micrometer-core")
implementation("org.mapstruct:mapstruct:1.5.3.Final")
kapt("org.mapstruct:mapstruct-processor:1.5.3.Final")
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
}
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${DependencyVersions.SPRING_CLOUD_VERSION}")
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "17"
}
}
tasks.jar {
enabled = false
}