plugins {
    id 'java'
    id 'groovy'
    id 'idea'
}

repositories {
    mavenLocal()
    mavenCentral()
    maven { url "https://maven.emrld.io" }
}

dependencies {
    implementation "org.apache.httpcomponents:httpclient:4.5.12"
    implementation "org.codehaus.groovy:groovy:3.0.4"
    implementation "com.fasterxml.jackson.core:jackson-core:2.9.8"
    implementation "com.fasterxml.jackson.core:jackson-databind:2.9.8"
    implementation "io.grpc:grpc-netty:1.46.0"
    implementation "org.bouncycastle:bcprov-jdk15on:1.61"
    implementation("io.emeraldpay:emerald-api:0.12-alpha.1") {
        exclude group: 'com.salesforce.servicelibs', module: 'reactor-grpc'
    }

    testImplementation "org.spockframework:spock-core:2.0-M3-groovy-3.0"
}


test {
    systemProperty "trialMode", project.getProperty("dshackleTrialMode")
    systemProperty "signatureKey", project.getProperty("signatureKey")
    useJUnitPlatform()
    testLogging {
        events "PASSED", "FAILED"
    }
}