Skip to content
Snippets Groups Projects
build.gradle 2.94 KiB
Newer Older
/*
Copyright (c) 2018 Vereign AG [https://www.vereign.com]

This is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

apply plugin: 'java'
compileJava {options.encoding = "UTF-8"}   
apply plugin: 'eclipse'

repositories {
    mavenCentral()
    mavenLocal()
    gradlePluginPortal()
}

configurations {
    cucumberRuntime {
        extendsFrom testRuntimeOnly
    }
}

def buildTags = '~@test,not @wip'
if (project.hasProperty("tags")) {
    buildTags = tags + ',not @wip'
}

def baseUrl
if (project.hasProperty("baseUrl")) {
    baseUrl = project.property("baseUrl")
}


tasks.withType(Test) {
    systemProperties = System.getProperties()

    systemProperties.remove("java.endorsed.dirs") // needs to be removed from Java 9
}

task regressionSuite(type: Test) {

    if (System.getProperty('env') == null) {
        systemProperty "env", "${baseUrl}"
    }
    systemProperty "file.encoding", "utf-8"
    systemProperty "baseUrl", "${baseUrl}"

    systemProperties System.getProperties()

    include '**/RegressionTestSuite.class'

    outputs.upToDateWhen { false }
}

dependencies {
    configurations.all {
        resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
    }

    testImplementation group: 'io.cucumber', name: 'cucumber-picocontainer', version: '4.3.0'
    testImplementation group: 'junit', name: 'junit', version: '4.+'
    implementation 'org.apache.commons:commons-lang3:3.4'
    implementation 'joda-time:joda-time:2.8.+'
    implementation 'org.easytesting:fest-assert:1.4'
    implementation 'org.codehaus.jackson:jackson-mapper-asl:1.9.+'
    implementation(group: "com.github.fge", name: "json-schema-validator", version: "2.2.+")
    implementation(group: "com.google.code.gson", name: "gson", version: "+")
    implementation(group: "io.rest-assured", name: "rest-assured", version: "4.+")
    implementation(group: "com.jayway.jsonpath", name: "json-path", version: "+")
Rosen Georgiev's avatar
Rosen Georgiev committed
    implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '+'
    implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '+'
    implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.60'
    implementation 'org.bouncycastle:bcpkix-jdk15on:1.51'
    implementation group: 'net.sourceforge.tess4j', name: 'tess4j', version: '4.4.1'
    implementation 'io.github.prashant-ramcharan:courgette-jvm:3.+'

Georgi Michev's avatar
Georgi Michev committed
    implementation 'org.mongodb:mongodb-driver-sync:4.0.5'