add kotlin gradle task to run texttest

`./gradlew -q text` now works

Co-authored-by: Marco Garofalo <marcogarofalo.personal@gmail.com>
This commit is contained in:
Ollie Kennedy 2025-04-04 12:35:29 +01:00
parent b3a0463bba
commit d87d813367
No known key found for this signature in database
GPG Key ID: 33BE3F08A7E3E8B7

View File

@ -24,6 +24,14 @@ tasks.test {
}
}
tasks.register<JavaExec>("texttest") {
description = "Allow you to run text-based approval tests with texttest"
group = JavaBasePlugin.BUILD_TASK_NAME
mainClass.set("com.gildedrose.TexttestFixtureKt")
classpath = sourceSets["test"].runtimeClasspath
args("30")
}
// config JVM target to 1.8 for kotlin compilation tasks
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"