build.gradle: add distribution option

This commit is contained in:
2018-06-20 22:29:23 -07:00
parent ff5fa69e7d
commit 25a2c19ecb
2 changed files with 41 additions and 0 deletions

View File

@ -1,11 +1,13 @@
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'
@ -44,6 +46,31 @@ testlogger {
//showExceptions false
}
distributions {
main {
contents {
into('csv') {
from('.') {
include 'EURUSD-2017-01-*.csv'
}
}
into('epl') {
from('.') {
include '*.epl'
}
}
// exclude('**/.data/**')
// from('src/main/webapp') {
// include '**/*.jsp'
// }
// from('src/main/js') {
// include '**/*.js'
// }
}
}
}
/*
test {
testLogging.showStandardStreams = true