generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
99 lines (81 loc) · 2.53 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
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("jacoco")
id("io.sentry.jvm.gradle") version PluginVersion.SENTRY_JVM
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
}
group = "team.msg"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
dependencies {
// spring starter
implementation(Dependencies.SPRING_JPA)
implementation(Dependencies.SPRING_SECURITY)
implementation(Dependencies.SPRING_VALIDATION)
implementation(Dependencies.SPRING_WEB)
implementation(Dependencies.SPRING_REDIS)
implementation(Dependencies.SPRING_AOP)
testImplementation(Dependencies.SPRING_STARTER_TEST)
testImplementation(Dependencies.SPRING_SECURITY_TEST)
// kapt
kapt(Dependencies.CONFIG_PROCESSOR)
// kotlin
implementation(Dependencies.JACKSON_MODULE_KOTLIN)
implementation(Dependencies.KOTLIN_REFLECT)
// database
runtimeOnly(Dependencies.MYSQL_DATABASE)
// jwt
implementation(Dependencies.JWT_API)
runtimeOnly(Dependencies.JWT_IMPL)
runtimeOnly(Dependencies.JWT_JACKSON)
// gauth
implementation(Dependencies.GAUTH)
// mockito
testImplementation(Dependencies.MOCKITO)
// cloudwatch appender
implementation(Dependencies.CLOUDWATCH_APPENDER)
// queryDsl
implementation(Dependencies.QUERY_DSL)
kapt(Dependencies.QUERYDSL_APT)
// jakarta
kapt(Dependencies.JAKARTA_ANNOTATION_API)
kapt(Dependencies.JAKARTA_PERSISTENCE_API)
// sentry
implementation(Dependencies.SENTRY_SPRING)
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.register<JacocoReport>("jacocoRootReport") {
subprojects {
[email protected]<JacocoPlugin>().configureEach {
it.extensions.findByType<JacocoTaskExtension>() != null
}
.configureEach {
sourceSets([email protected]<SourceSetContainer>().named("main").get())
executionData(this)
}
}
}
reports {
xml.outputLocation.set(layout.buildDirectory.file("reports/jacoco/test/jacocoTestReport.xml"))
xml.required.set(true)
html.required.set(false)
}
}