-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
63 lines (53 loc) · 1.44 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
56
57
58
59
60
61
62
63
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.8.21'
id 'com.gradle.plugin-publish' version '1.2.0'
id 'jacoco'
id 'java-gradle-plugin'
id 'pl.droidsonroids.jacoco.testkit' version '1.0.12'
}
dependencies {
compileOnly gradleApi()
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.assertj:assertj-core:3.24.2'
}
group = GROUP
version = VERSION_NAME
gradlePlugin {
website = POM_URL
vcsUrl = POM_SCM_URL
plugins {
jacocoTestKitPlugin {
id = 'pl.droidsonroids.jacoco.testkit'
implementationClass = 'pl.droidsonroids.gradle.jacoco.testkit.JaCoCoTestKitPlugin'
displayName = POM_NAME
description = POM_DESCRIPTION
tags.set(['jacoco', 'coverage', 'testkit', 'test'])
}
}
}
kotlin {
jvmToolchain(17)
}
def javaTargetVersion = JavaVersion.VERSION_1_8
tasks.withType(KotlinCompile).configureEach {
kotlinOptions.jvmTarget = javaTargetVersion.toString()
}
tasks.withType(JavaCompile).configureEach {
options.release.set(javaTargetVersion.majorVersion.toInteger())
}
tasks.withType(Test).configureEach {
doLast {
Thread.sleep(2000) // https://github.com/gradle/gradle/issues/16603
}
}
jacoco {
toolVersion '0.8.10'
}
jacocoTestReport {
reports {
xml.required = true
csv.required = false
html.required = true
}
}