mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 17:21:38 +00:00
47 lines
1.2 KiB
Groovy
47 lines
1.2 KiB
Groovy
apply plugin: "groovy"
|
|
apply plugin: "java"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
sourceCompatibility = '21'
|
|
targetCompatibility = '21'
|
|
|
|
dependencies {
|
|
implementation 'org.codehaus.groovy:groovy:3.0.8'
|
|
testImplementation 'io.cucumber:cucumber-java:7.21.1'
|
|
testImplementation 'io.cucumber:cucumber-junit:7.21.1'
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.3'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.3'
|
|
testImplementation 'org.junit.vintage:junit-vintage-engine:5.9.3'
|
|
}
|
|
|
|
configurations {
|
|
cucumberRuntime {
|
|
extendsFrom testImplementation
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|
|
|
|
task cucumber() {
|
|
dependsOn assemble, testClasses
|
|
doLast {
|
|
javaexec {
|
|
main = "io.cucumber.core.cli.Main"
|
|
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
|
|
args = [
|
|
'--plugin', 'pretty',
|
|
'--plugin', 'html:target/cucumber-report.html',
|
|
'--glue', 'com.gildedrose',
|
|
'src/test/resources']
|
|
}
|
|
}
|
|
}
|