2020-10-11 19:29:16 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'java-library'
|
|
|
|
}
|
|
|
|
|
|
|
|
group 'com.gmgauthier'
|
|
|
|
version '1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-10-13 17:17:45 +00:00
|
|
|
implementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.0'
|
|
|
|
implementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.0'
|
|
|
|
implementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.7.0'
|
2024-07-24 17:14:56 +00:00
|
|
|
implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '4.23.0'
|
|
|
|
implementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.9.1'
|
2020-10-11 19:29:16 +00:00
|
|
|
testImplementation group: 'org.hamcrest', name: 'hamcrest', version: '2.2'
|
2024-07-24 17:14:56 +00:00
|
|
|
testImplementation 'io.cucumber:cucumber-java:7.18.1'
|
|
|
|
testImplementation 'io.cucumber:cucumber-junit:7.18.1'
|
2020-10-11 19:29:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
2024-07-24 17:14:56 +00:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-10-11 19:29:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
cucumberRuntime {
|
|
|
|
extendsFrom testImplementation
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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', '--glue', 'cucumber', 'src/test/resources/']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|