Merge pull request #613 from olliekennedy/fix-kotlin-texttest

Enable texttest to run in the Kotlin project
This commit is contained in:
Emily Bache 2025-04-04 11:48:22 +00:00 committed by GitHub
commit fcd540f80d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"