-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
50 lines (38 loc) · 1.23 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "com.chutneytesting"
version = "0.1.0-SNAPSHOT"
description = "A GitHub project template to help you start with Chutney Kotlin DSL"
plugins {
kotlin("jvm") version "1.8.22" apply true
}
repositories {
mavenCentral()
}
dependencies {
api("org.jetbrains.kotlin:kotlin-stdlib:1.8.22")
api("com.chutneytesting:chutney-kotlin-dsl:[2.0.0,)")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Test> {
useJUnitPlatform()
}
task("chutneyReportSite", JavaExec::class) {
classpath(configurations.runtimeClasspath)
mainClass.set("com.chutneytesting.kotlin.execution.report.SiteGeneratorMain")
args("build/reports/chutney")
}
tasks {
test {
systemProperty("chutney.environment.rootPath", "chutney_environments") // Default is .chutney/environments
systemProperty("chutney.report.rootPath", "build/reports/chutney")
systemProperty("chutney.engine.stepAsTest", false)
systemProperty("chutney.log.color.enabled", true)
finalizedBy("chutneyReportSite")
}
}