-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
75 lines (62 loc) · 2.1 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
69
70
71
72
73
74
75
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.31"
kotlin("plugin.noarg") version "1.3.11"
kotlin("plugin.allopen") version "1.3.11"
id("io.spring.dependency-management") version "1.0.4.RELEASE"
id("org.springframework.boot") version "2.1.1.RELEASE"
}
group = "org.droidwiki"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencyManagement {
val springBootVersion = "2.1.1.RELEASE"
imports {
mavenBom("org.springframework.boot:spring-boot-parent:$springBootVersion")
}
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.springframework.boot:spring-boot-starter-web-services")
implementation("org.jsoup:jsoup:1.11.3")
testImplementation(kotlin("test-junit5"))
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.3.1")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude("junit")
}
}
sourceSets {
create("integrationTest") {
withConvention(KotlinSourceSet::class) {
kotlin.srcDir("src/integrationTest/kotlin")
resources.srcDir("src/integrationTest/resources")
compileClasspath += sourceSets["main"].output + sourceSets["test"].output + configurations["testRuntimeClasspath"]
runtimeClasspath += output + compileClasspath + sourceSets["test"].runtimeClasspath
}
}
}
task<Test>("integrationTest") {
description = "Runs the integration tests"
group = "verification"
testClassesDirs = sourceSets["integrationTest"].output.classesDirs
classpath = sourceSets["integrationTest"].runtimeClasspath
mustRunAfter(tasks["test"])
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
withType<Test>().configureEach {
useJUnitPlatform()
}
"check" {
dependsOn("integrationTest")
}
}