GildedRose-Refactoring-Kata/Java-Cucumber/build.gradle

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']
}
}
}