-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (49 loc) · 1.22 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.22"
jacoco
}
group = "ar.edu.unsam.algo2"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
val mockkVersion = "1.13.9"
val kotestVersion = "5.8.0"
dependencies {
implementation(kotlin("stdlib"))
implementation ("com.google.code.gson:gson:2.10.1")
testImplementation("io.mockk:mockk:${mockkVersion}")
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "21"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.test {
finalizedBy(tasks.jacocoTestReport)
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
}
jacoco {
toolVersion = "0.8.11"
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
csv.required.set(true)
html.outputLocation.set(layout.buildDirectory.dir("jacocoHtml"))
}
}
tasks.register("runOnGitHub") {
dependsOn("jacocoTestReport")
group = "custom"
description = "$ ./gradlew runOnGitHub # runs on GitHub Action"
}