plugins { id 'java' id 'application' id 'distribution' id "com.github.johnrengelman.shadow" version "2.0.4" id "com.adarshr.test-logger" version "1.2.0" } mainClassName = 'App' version = '0.2.2' dependencies { compile 'com.google.guava:guava:23.0' testCompile 'junit:junit:4.12' implementation 'com.espertech:esper:7.1.0' implementation 'com.oanda.v20:v20:3.0.21' implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.5' implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.9.5' implementation 'org.slf4j:slf4j-api:1.6.1' implementation 'ch.qos.logback:logback-core:1.3.0-alpha4' implementation 'ch.qos.logback:logback-classic:1.3.0-alpha4' implementation 'org.fusesource.jansi:jansi:1.8' implementation 'commons-cli:commons-cli:1.4' implementation 'joda-time:joda-time:2.9.9' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.9.5' } repositories { jcenter() } run { systemProperty 'logback.configurationFile', 'src/main/resources/logback.xml' if (project.hasProperty('runArgs')) { args findProperty('runArgs').split('\\s+') } } testlogger { theme 'standard' showStandardStreams true //showSummary false //showExceptions false } distributions { main { contents { into('csv') { from('csv') { include 'EURUSD-2017-01-*.csv' } } into('epl') { from('epl') { include '*.epl' } } // exclude('**/.data/**') // from('src/main/webapp') { // include '**/*.jsp' // } // from('src/main/js') { // include '**/*.js' // } } } } /* test { testLogging.showStandardStreams = true testLogging { // events "passed", "skipped", "failed" events "passed", "skipped", "failed", "standardOut", "standardError" } } */ task javadocs(type: Javadoc) { source = sourceSets.main.allJava }