-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
31 lines (29 loc) · 1.21 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
plugins {
val kotlinVersion = "1.6.10"
kotlin("jvm") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion apply false
kotlin("plugin.spring") version kotlinVersion apply false
id("org.springframework.boot") version "2.6.4" apply false
id("io.spring.dependency-management") version "1.1.0"
}
allprojects { repositories { mavenCentral(); mavenLocal(); google(); } }
subprojects {
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
val java: String by project
kotlinOptions { jvmTarget = java }
test { useJUnitPlatform() }
}
}
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jetbrains.kotlin.plugin.spring")
apply(plugin = "org.springframework.boot")
apply(plugin = "io.spring.dependency-management")
dependencies {
val springCloud: String by project
implementation(enforcedPlatform("org.springframework.cloud:spring-cloud-dependencies:$springCloud"))
annotationProcessor("org.springframework.boot", "spring-boot-starter-actuator")
annotationProcessor("org.springframework.boot", "spring-boot-configuration-processor")
}
}
defaultTasks("machine:bootRun")