build.gradle: add distribution option
This commit is contained in:
27
build.gradle
27
build.gradle
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user