mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
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:
parent
b3a0463bba
commit
d87d813367
@ -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
|
// config JVM target to 1.8 for kotlin compilation tasks
|
||||||
tasks.withType<KotlinCompile>().configureEach {
|
tasks.withType<KotlinCompile>().configureEach {
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
kotlinOptions.jvmTarget = "1.8"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user