-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
129 lines (111 loc) · 5.05 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.4.1"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("jacoco")
kotlin("jvm") version "1.4.21"
kotlin("plugin.spring") version "1.4.21"
kotlin("plugin.jpa") version "1.4.21"
kotlin("plugin.allopen") version "1.4.21"
}
group = "com.dsm"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
google()
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
runtimeOnly("mysql:mysql-connector-java")
implementation("com.google.firebase:firebase-admin:6.8.1")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("io.jsonwebtoken:jjwt:0.9.1")
implementation("io.springfox:springfox-swagger2:2.9.2")
implementation("io.springfox:springfox-swagger-ui:2.9.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.retrofit2:converter-jackson:2.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.4.2")
implementation("org.jacoco:org.jacoco.core:0.8.5")
testImplementation("io.mockk:mockk:1.9.3")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testRuntimeOnly("com.h2database:h2")
testImplementation("it.ozimov:embedded-redis:0.7.2")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
tasks.withType<Test> {
useJUnitPlatform()
finalizedBy("jacocoTestReport")
}
tasks.jacocoTestReport {
reports {
xml.isEnabled = true
csv.isEnabled = false
html.isEnabled = true
}
finalizedBy("jacocoTestCoverageVerification")
}
tasks.jacocoTestCoverageVerification {
violationRules {
rule {
enabled = true
element = "CLASS"
limit {
counter = "METHOD"
value = "COVEREDRATIO"
minimum = "1.0".toBigDecimal()
}
excludes = mutableListOf(
"com.dsm.clematis.global.*",
"com.dsm.clematis.domain.account.controller.request.*",
"com.dsm.clematis.domain.account.controller.response.*",
"com.dsm.clematis.domain.account.domain.*",
"com.dsm.clematis.domain.account.exception.*",
"com.dsm.clematis.domain.affiliation.controller.request.*",
"com.dsm.clematis.domain.affiliation.controller.response.*",
"com.dsm.clematis.domain.affiliation.domain.*",
"com.dsm.clematis.domain.affiliation.exception.*",
"com.dsm.clematis.domain.authentication.controller.request.*",
"com.dsm.clematis.domain.authentication.controller.response.*",
"com.dsm.clematis.domain.authentication.domain.*",
"com.dsm.clematis.domain.authentication.exception.*",
"com.dsm.clematis.domain.group.controller.request.*",
"com.dsm.clematis.domain.group.controller.response.*",
"com.dsm.clematis.domain.group.domain.*",
"com.dsm.clematis.domain.group.exception.*",
"com.dsm.clematis.domain.project.controller.request.*",
"com.dsm.clematis.domain.project.controller.response.*",
"com.dsm.clematis.domain.project.domain.*",
"com.dsm.clematis.domain.project.exception.*",
"com.dsm.clematis.domain.push.controller.request.*",
"com.dsm.clematis.domain.push.controller.response.*",
"com.dsm.clematis.domain.push.domain.*",
"com.dsm.clematis.domain.push.exception.*",
"com.dsm.clematis.domain.push.scheduler.*",
"com.dsm.clematis.domain.push.external.*",
"com.dsm.clematis.domain.push.controller.*",
"com.dsm.clematis.domain.target.controller.request.*",
"com.dsm.clematis.domain.target.controller.response.*",
"com.dsm.clematis.domain.target.domain.*",
"com.dsm.clematis.domain.target.exception.*",
"com.dsm.clematis.domain.template.controller.request.*",
"com.dsm.clematis.domain.template.controller.response.*",
"com.dsm.clematis.domain.template.domain.*",
"com.dsm.clematis.domain.template.exception.*",
"com.dsm.clematis.ClematisApplicationKt"
)
}
}
}