-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (46 loc) · 1.47 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
object Version {
const val KOTLIN_VERSION = "1.9.25"
const val SPRING_BOOT_VERSION = "3.3.3"
const val SPRING_CLOUD_CONFIG_VERSION = "4.1.3"
const val NETFLIX_EUREKA_CLIENT_VERSION = "4.1.3"
}
plugins {
val KOTLIN_VERSION = "1.9.25"
val SPRING_PLUGIN_VERSION = "1.9.25"
val SPRING_BOOT_VERSION = "3.3.3"
val SPRING_BOOT_DEPENDENCY_MANAGEMENT_VERSION = "1.1.6"
kotlin("jvm") version KOTLIN_VERSION
kotlin("plugin.spring") version SPRING_PLUGIN_VERSION
id("org.springframework.boot") version SPRING_BOOT_VERSION
id("io.spring.dependency-management") version SPRING_BOOT_DEPENDENCY_MANAGEMENT_VERSION
}
group = "com.nfu"
version = "0.0.1"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
extra["springCloudVersion"] = "2023.0.3"
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect:${Version.KOTLIN_VERSION}")
implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:${Version.NETFLIX_EUREKA_CLIENT_VERSION}")
implementation("org.springframework.cloud:spring-cloud-config-server:${Version.SPRING_CLOUD_CONFIG_VERSION}")
testImplementation("org.springframework.boot:spring-boot-starter-test:${Version.SPRING_BOOT_VERSION}")
}
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
}
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
}
tasks.withType<Test> {
useJUnitPlatform()
}