-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
66 lines (53 loc) · 1.66 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
import io.gitlab.arturbosch.detekt.getSupportedKotlinVersion
plugins {
id("org.springframework.boot") version "3.3.5"
id("io.spring.dependency-management") version "1.1.6"
id("org.jmailen.kotlinter") version "4.3.0"
id("io.gitlab.arturbosch.detekt") version "1.23.7"
val kotlinVersion = "2.0.21"
id("org.jetbrains.kotlin.plugin.allopen") version kotlinVersion
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
}
configurations.matching { it.name == "detekt" }.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
useVersion(getSupportedKotlinVersion())
}
}
}
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:2023.0.3")
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.getByName<Jar>("jar") {
enabled = false
}
group = "tech.kocel"
project.version = "0.0.1"
repositories {
maven(url = "https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven")
mavenCentral()
}
dependencies {
implementation("org.springframework.cloud:spring-cloud-starter-gateway")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.github.microutils:kotlin-logging:3.0.5")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.withType<AbstractCompile> {
dependsOn(":processResources")
}
tasks.test {
useJUnitPlatform()
}
tasks.wrapper {
distributionType = Wrapper.DistributionType.BIN
}