description = 'Microservice Spring infrastructure for properties management'

sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs += ["src/main/java", "src/main/groovy"]

dependencies {
    compile project(':micro-deps-root:micro-deps')

    compile 'org.springframework.cloud:spring-cloud-config-client'
    compile 'org.springframework.cloud:spring-cloud-config-server'
    compile 'org.springframework.security:spring-security-rsa:1.0.5.RELEASE'
    compile 'org.codehaus.groovy:groovy-all'
    compile 'org.aspectj:aspectjrt'
    compile 'commons-io:commons-io'
    compile 'org.springframework.cloud:spring-cloud-starter-zookeeper-discovery'

    testCompile 'org.aspectj:aspectjweaver'
    testCompile 'org.spockframework:spock-core'
    testCompile 'info.solidsoft.spock:spock-global-unroll'
    testRuntime 'org.springframework:spring-test'
    testRuntime 'org.spockframework:spock-spring'
    testRuntime 'ch.qos.logback:logback-classic'
    testCompile 'org.awaitility:awaitility'
    testCompile 'org.awaitility:awaitility-groovy'
    testCompile 'com.github.stefanbirkner:system-rules'
}

test {
    String disableDecryptionTestsPropertyValue = System.getProperty("disableDecryptionTests")
    if (disableDecryptionTestsPropertyValue != null) {
        systemProperty("disableDecryptionTests", disableDecryptionTestsPropertyValue)
    }
}
