-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
64 lines (50 loc) · 1.81 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.6.4"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("org.jetbrains.kotlin.jvm") version "1.6.10"
id("org.jetbrains.kotlin.plugin.spring") version "1.6.10"
}
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(13))
}
}
group = "de.phitho.samples"
// update gradle (always the ALL distribution) via
// ./gradlew wrapper --gradle-version 7.x.x
tasks.named<Wrapper>("wrapper") {
distributionType = Wrapper.DistributionType.ALL
}
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:2021.0.1")
}
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.cloud:spring-cloud-starter-sleuth")
implementation("io.projectreactor.netty:reactor-netty-http-brave")
// kotlin related
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// logging
implementation("io.github.microutils:kotlin-logging")
implementation("ch.qos.logback:logback-classic")
implementation("net.logstash.logback:logstash-logback-encoder:7.0.1")
implementation("org.codehaus.janino:janino")
implementation("io.github.microutils:kotlin-logging:2.1.21")
implementation("org.slf4j:log4j-over-slf4j")
developmentOnly("org.springframework.boot:spring-boot-devtools")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
repositories {
mavenCentral()
}