-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
132 lines (102 loc) Β· 3.49 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
131
132
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// Spring
kotlin("plugin.spring") version PluginVersions.SPRING_PLUGIN_VERSION
id("org.springframework.boot") version PluginVersions.SPRING_BOOT_VERSION
// Gradle Manager
id("io.spring.dependency-management") version PluginVersions.DEPENDENCY_MANAGER_VERSION
kotlin("plugin.jpa") version PluginVersions.JPA_PLUGIN_VERSION
// Kotlint
id("org.jetbrains.kotlin.kapt") version PluginVersions.KAPT_VERSION
// Java
kotlin("jvm") version PluginVersions.JVM_VERSION
// Docs
id("org.jetbrains.dokka") version "1.9.20"
// Lint
id("org.jlleitschuh.gradle.ktlint") version PluginVersions.KLINT_VERSION
// application
}
group = "com.info.maeumgagym"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
maven { url = uri("https://repo.spring.io/snapshot") }
}
tasks.bootJar {
archiveFileName.set("maeumgagym-server.jar")
}
dependencies {
// Kotlin
implementation(DependencyNames.KOTLIN_REFLECT)
implementation(DependencyNames.KOTLIN_JDK)
// Cloud
implementation(DependencyNames.HEALTH_CHECKER)
implementation(DependencyNames.SPRING_CLOUD)
// Spring Web
implementation(DependencyNames.SPRING_WEB)
implementation(DependencyNames.JACKSON)
implementation(DependencyNames.SPRING_VALIDATION)
// External
implementation(DependencyNames.OPEN_FEIGN)
implementation(DependencyNames.FEIGN_HTTP)
implementation(DependencyNames.MINIO)
// Security
implementation(DependencyNames.SPRING_SECURITY)
// logger
implementation(DependencyNames.LOGGER)
// Docs
implementation(DependencyNames.SPRING_DOC)
implementation(DependencyNames.SWAGGER)
// jpa
implementation(DependencyNames.SPRING_DATA_JPA)
implementation(DependencyNames.SPRING_TRANSACTION)
kapt(DependencyNames.ANNOTATION_PROCESSOR)
// MySQL
implementation(DependencyNames.MYSQL_CONNECTOR)
// redis
implementation(DependencyNames.REDIS)
// jwt
implementation(DependencyNames.JWT)
// test
testImplementation(DependencyNames.SPRING_TEST)
testImplementation(DependencyNames.MOCKK)
testImplementation(DependencyNames.JUNIT_JUPITER)
testImplementation(DependencyNames.JUNIT_JUPITER_API)
testRuntimeOnly(DependencyNames.JUNIT_JUPITER_ENGINE)
}
// Declaring a publicly-available repository
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${DependencyVersions.SPRING_CLOUD_VERSION}")
}
}
tasks.withType<Test> {
useJUnitPlatform()
systemProperty("spring.profiles.active", "local")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "17"
}
}
allOpen {
annotation("javax.persistence.Entity")
annotation("javax.persistence.MappedSuperclass")
annotation("javax.persistence.Embeddable")
annotations("org.springframework.data.redis.core.RedisHash")
annotation("com.info.common.UseCase")
annotation("org.springframework.stereotype.Service")
annotation("com.info.common.PersistenceAdapter")
annotation("com.info.common.WebAdapter")
}
noArg {
annotation("javax.persistence.Entity")
annotation("javax.persistence.MappedSuperclass")
annotation("javax.persistence.Embeddable")
annotations("org.springframework.data.redis.core.RedisHash")
}