-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (45 loc) · 1.51 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.20"
id("org.springframework.boot") version "2.6.6"
id("org.jetbrains.kotlin.plugin.spring") version "1.6.20"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
}
group = "com.csg.codeit"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4")
implementation("com.squareup.okhttp3:okhttp:4.10.0")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
testImplementation(kotlin("test"))
testImplementation("io.mockk:mockk:1.12.8")
testImplementation("com.squareup.okhttp3:mockwebserver:4.10.0")
testImplementation("org.assertj:assertj-core:3.23.1")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.getByName<Jar>("bootJar") {
from("README.md") {
into("BOOT-INF/classes/static")
}
}
tasks.getByName<Jar>("jar") {
enabled = false
}