-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
74 lines (66 loc) · 2.45 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val springFoxVersion: String by project
val junitVersion: String by project
val jacksonXmlVersion: String by project
val slackApiClientVersion: String by project
val okHttp3Version: String by project
val userAgentUtilVersion: String by project
val slackWebhookVersion: String by project
val apacheCommonsIOVersion: String by project
plugins {
id("org.springframework.boot")
id("io.spring.dependency-management")
id("org.jlleitschuh.gradle.ktlint")
kotlin("jvm")
kotlin("plugin.spring")
kotlin("plugin.jpa")
}
group = "com.corona"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
dependencies {
// WEB
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-web")
// CACHING
implementation("org.springframework.boot:spring-boot-starter-cache:2.5.3")
// WEBCLIENT
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
// IO
implementation("commons-io:commons-io:$apacheCommonsIOVersion")
// TEST
testImplementation("org.springframework.boot:spring-boot-starter-test")
// SLACK WEBHOOK
implementation("com.slack.api:slack-api-client:$slackApiClientVersion")
implementation("com.squareup.okhttp3:okhttp:$okHttp3Version")
implementation("eu.bitwalker:UserAgentUtils:$userAgentUtilVersion")
implementation("net.gpedro.integrations.slack:slack-webhook:$slackWebhookVersion")
// JACKSON
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jacksonXmlVersion")
// SWAGGER
implementation("io.springfox:springfox-boot-starter:$springFoxVersion")
// ETC
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
developmentOnly("org.springframework.boot:spring-boot-devtools")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}