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 { plugins {
id 'java' id 'java'
id 'application' id 'application'
id 'distribution'
id "com.github.johnrengelman.shadow" version "2.0.4" id "com.github.johnrengelman.shadow" version "2.0.4"
id "com.adarshr.test-logger" version "1.2.0" id "com.adarshr.test-logger" version "1.2.0"
} }
mainClassName = 'App' mainClassName = 'App'
version = '0.2.2'
dependencies { dependencies {
compile 'com.google.guava:guava:23.0' compile 'com.google.guava:guava:23.0'
@ -44,6 +46,31 @@ testlogger {
//showExceptions false //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 { test {
testLogging.showStandardStreams = true testLogging.showStandardStreams = true

View File

@ -101,3 +101,17 @@ https://github.com/mopemope/meghanada-emacs
http://imperceptiblethoughts.com/shadow/ http://imperceptiblethoughts.com/shadow/
adds =shadowJar= gradle task. adds =shadowJar= gradle task.
* making distributions
Gradle distribution plugin
https://docs.gradle.org/current/userguide/distribution_plugin.html
adds =distZip=, =distTar=, and =installDist= tasks.
* TEST OUT lsp-java instead of meghanda
https://github.com/emacs-lsp/lsp-java