-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
72 lines (62 loc) · 2.2 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
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType.BIN
val arrowVersion = "1.2.4"
val kotlinLoggingVersion = "3.0.5"
val kotlinTestVersion = "5.9.1"
val wireMockVersion = "3.0.1"
plugins {
id("org.springframework.boot") version "3.3.5"
id("io.spring.dependency-management") version "1.1.6"
val kotlinVersion = "2.0.21"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
id("com.google.osdetector") version "1.7.3"
id("org.jmailen.kotlinter") version "4.3.0"
id("io.gitlab.arturbosch.detekt").version("1.23.0")
}
group = "tech.kocel"
version = "0.0.1-SNAPSHOT"
project.afterEvaluate {
configurations["detekt"].resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
useVersion("1.8.21")
}
}
}
kotlin {
jvmToolchain {
this.languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-webflux")
if (osdetector.arch.equals("aarch_64")) {
implementation("io.netty:netty-all")
}
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("io.arrow-kt:arrow-core:$arrowVersion")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.github.microutils:kotlin-logging:$kotlinLoggingVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("com.github.tomakehurst:wiremock-jre8-standalone:$wireMockVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.kotest:kotest-runner-junit5:$kotlinTestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotlinTestVersion")
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.wrapper {
gradleVersion = "8.2"
distributionType = BIN
}