-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
68 lines (56 loc) · 1.79 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
67
68
group = "com.github.monosoul"
version = "1.0"
val springBootVersion: String by extra
val byteBuddyVersion by extra { "1.9.2" }
val junitVersion by extra { "5.3.2" }
buildscript {
val springBootVersion by extra { "2.1.2.RELEASE" }
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
}
}
plugins {
java
}
apply {
plugin("org.springframework.boot")
plugin("io.spring.dependency-management")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = JavaVersion.VERSION_1_9
}
dependencies {
val lombokDependency = "org.projectlombok:lombok:1.18.4"
annotationProcessor(lombokDependency)
compileOnly(lombokDependency)
compile("org.springframework.boot:spring-boot-starter-aop")
compile("org.springframework.boot:spring-boot-starter-web")
testAnnotationProcessor(lombokDependency)
testCompileOnly(lombokDependency)
testCompile("org.apache.commons:commons-lang3:3.8.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testCompile("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testRuntime("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testRuntime("org.junit.vintage:junit-vintage-engine:$junitVersion")
testCompile("org.assertj:assertj-core:3.11.1")
testCompile("org.mockito:mockito-core:2.23.0") {
exclude("net.bytebuddy")
}
testCompile("net.bytebuddy:byte-buddy:$byteBuddyVersion")
testCompile("net.bytebuddy:byte-buddy-agent:$byteBuddyVersion")
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude("junit")
}
}
tasks {
"test"(Test::class) {
useJUnitPlatform()
}
}
repositories {
mavenCentral()
}