-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (36 loc) · 1.05 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
import org.springframework.boot.gradle.tasks.buildinfo.BuildInfo
plugins {
java
id("org.springframework.boot") version "2.3.0.M3"
id("io.spring.dependency-management") version "1.0.9.RELEASE"
}
group = "eu.maksimov.demo"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springdoc:springdoc-openapi-ui:1.2.34")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_11
}
tasks.withType<Test> {
useJUnitPlatform()
}
springBoot {
buildInfo()
}
tasks.withType<BuildInfo> {
// so that dummy src/main/resources/META-INF/build-info.properties gets overridden
mustRunAfter(tasks.processResources)
}
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
version = "6.3"
}