-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
116 lines (95 loc) · 3.15 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version PluginVersion.SPRING_BOOT_VERSION
id("io.spring.dependency-management") version PluginVersion.DEPENDENCY_MANAGER_VERSION
id("com.ewerk.gradle.plugins.querydsl") version PluginVersion.QUERY_DSL_PLUGIN_VERSION
id("org.jlleitschuh.gradle.ktlint") version "10.2.0"
kotlin("jvm") version PluginVersion.JVM_VERSION
kotlin("plugin.spring") version PluginVersion.SPRING_PLUGIN_VERSION
kotlin("plugin.jpa") version PluginVersion.JPA_PLUGIN_VERSION
kotlin("kapt") version PluginVersion.KAPT_VERSION
idea
application
}
group = "com.msg"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
dependencies {
// spring
implementation(Dependencies.SPRING_JPA)
implementation(Dependencies.SPRING_REDIS)
implementation(Dependencies.SPRING_SECURITY)
implementation(Dependencies.SPRING_WEB)
implementation(Dependencies.SPRING_MAIL)
implementation(Dependencies.SPRING_THYMELEAF)
implementation(Dependencies.SPRING_VALIDATION)
kapt(Dependencies.CONFIG_PROCESSOR)
testImplementation(Dependencies.SPRING_STARTER_TEST)
testImplementation(Dependencies.SPRING_SECURITY_TEST)
implementation(Dependencies.SPRING_AOP)
implementation(Dependencies.SPRING_ACTUATOR)
implementation(Dependencies.SPRING_CACHE)
// kotlin
implementation(Dependencies.JACKSON_MODULE_KOTLIN)
implementation(Dependencies.KOTLIN_REFLET)
implementation(Dependencies.KOTLIN_JDK)
// jackson
implementation(Dependencies.KOTLIN_SERIALIZATION)
// aws
implementation(Dependencies.AWS_S3)
// database
runtimeOnly(Dependencies.H2_DATABASE)
runtimeOnly(Dependencies.MYSQL_DATABASE)
runtimeOnly(Dependencies.MARIADB_DATABASE)
// jwt
implementation(Dependencies.JWT_API)
runtimeOnly(Dependencies.JWT_IMPL)
runtimeOnly(Dependencies.JWT_JACKSON)
// apache
implementation(Dependencies.APACHE_POI)
implementation(Dependencies.APACHE_POI_XML)
implementation(Dependencies.COMMONS_IO)
implementation(Dependencies.APACHE_TIKA)
// querydsl
implementation(Dependencies.QUERY_DSL)
implementation(Dependencies.QUERY_DSL_APT)
kapt(Dependencies.QUERY_DSL_APT)
// prometheus
implementation(Dependencies.PROMETHEUS_MICROMETER)
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
idea {
module {
val kaptMain = file("build/generated/source/kapt/main")
sourceDirs.add(kaptMain)
generatedSourceDirs.add(kaptMain)
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
application {
mainClass.set("com.msg.gauth.GauthBackendApplicationKt")
}
ktlint {
verbose.set(true)
android.set(false)
outputToConsole.set(true)
coloredOutput.set(false)
ignoreFailures.set(false)
enableExperimentalRules.set(false)
disabledRules.set(setOf("no-wildcard-imports", "import-ordering"))
}