git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f0dfe10
)
JAL-3225 try/catch for non-deprecated/deprecated property in sourceDist which is...
author
Ben Soares
<bsoares@dundee.ac.uk>
Thu, 4 Jul 2019 13:43:47 +0000
(14:43 +0100)
committer
Ben Soares
<bsoares@dundee.ac.uk>
Thu, 4 Jul 2019 13:43:47 +0000
(14:43 +0100)
build.gradle
patch
|
blob
|
history
diff --git
a/build.gradle
b/build.gradle
index
861fa21
..
0f0b8ff
100644
(file)
--- a/
build.gradle
+++ b/
build.gradle
@@
-1170,7
+1170,13
@@
clean {
task sourceDist (type: Tar) {
def VERSION_UNDERSCORES = JALVIEW_VERSION.replaceAll("\\.", "_")
task sourceDist (type: Tar) {
def VERSION_UNDERSCORES = JALVIEW_VERSION.replaceAll("\\.", "_")
- archiveFileName = project.name + "_" + VERSION_UNDERSCORES + ".tar.gz"
+ def outputFileName = project.name + "_" + VERSION_UNDERSCORES + ".tar.gz"
+ // cater for buildship < 3.1 [3.0.1 is max version in eclipse 2018-09]
+ try {
+ archiveFileName = outputFileName
+ } catch (Exception e) {
+ archiveName = outputFileName
+ }
compression Compression.GZIP
compression Compression.GZIP