forked from GazeUI/SpringBoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (36 loc) · 1.18 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
plugins {
`java-library`
id("org.springframework.boot") version "2.2.2.RELEASE"
}
// Allows to omit version numbers when declaring dependencies
apply(plugin = "io.spring.dependency-management")
repositories {
jcenter()
}
dependencies {
implementation("org.springframework:spring-web")
implementation("org.springframework:spring-context")
implementation("org.springframework:spring-webmvc")
implementation("org.apache.tomcat.embed:tomcat-embed-core")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks {
withType<JavaCompile> {
// Related issues:
// - Gradle: https://github.com/gradle/gradle/issues/2510
// - Eclipse: https://github.com/eclipse/buildship/issues/934
options.compilerArgs.addAll(arrayOf("--release", "8"))
}
// The bootJar task requires a main class, so we have to use the classic jar task to build the library.
jar {
enabled = true
}
test {
useJUnitPlatform()
}
}