plugins { id 'java' id 'java-library' id "org.springframework.boot" version "2.0.1.RELEASE" } group 'com.gmgauthier' version '1.0-SNAPSHOT' repositories { mavenCentral() mavenLocal() } test { useJUnitPlatform() } dependencies { implementation group: 'org.hibernate', name: 'hibernate-validator', version: '6.1.6.Final' implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.22' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.4.0' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.4.0' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-freemarker', version: '2.4.0' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '2.4.0' 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' implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '4.0.0-alpha-7' //implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59' implementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '4.2.2' testImplementation group: 'org.hamcrest', name: 'hamcrest', version: '2.2' testImplementation 'io.cucumber:cucumber-java:6.7.0' testImplementation 'io.cucumber:cucumber-junit:6.7.0' } //java { // THIS WILL BREAK THE DB DEMO, WHICH REQUIRES JDK11 // sourceCompatibility = JavaVersion.VERSION_1_8 // targetCompatibility = JavaVersion.VERSION_1_8 //} 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/'] } } }