-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
55 lines (43 loc) · 1.04 KB
/
build.gradle
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
plugins {
id 'java'
id 'jacoco'
id 'org.jetbrains.kotlin.jvm' version '1.8.10'
}
jacoco {
toolVersion = "0.8.8"
}
allprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = 1.11
targetCompatibility = 1.11
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://repo1.maven.org/maven2/" }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:1.8.10")
testImplementation 'org.hamcrest:hamcrest-library:2.2'
}
}
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
subprojects {
test.useTestNG()
}
jacocoTestReport {
reports {
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir("${buildDir}/jacocoHtml")
// html.destination file("${buildDir}/jacocoHtml")
}
}
check.dependsOn jacocoTestReport