You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2022/01/24 05:10:14 UTC
[incubator-eventmesh] branch master updated: Use archiveBaseName and archiveVersion to optimize gradle zip task (#728)
This is an automated email from the ASF dual-hosted git repository.
mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 127972e Use archiveBaseName and archiveVersion to optimize gradle zip task (#728)
127972e is described below
commit 127972ed104ba12d7f07e05426450dccdd5cd174
Author: Wenjun Ruan <we...@apache.org>
AuthorDate: Mon Jan 24 13:10:08 2022 +0800
Use archiveBaseName and archiveVersion to optimize gradle zip task (#728)
---
build.gradle | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/build.gradle b/build.gradle
index 20671fa..6d85034 100644
--- a/build.gradle
+++ b/build.gradle
@@ -78,9 +78,10 @@ allprojects {
}
task tar(type: Tar) {
- extension = 'tar.gz'
+ archiveBaseName.set(project.name)
+ archiveVersion.set(project.version.toString())
+ archiveExtension.set('tar.gz')
compression = Compression.GZIP
- archiveFileName = project.name + '-' + project.version + '.' + extension
destinationDirectory = new File(projectDir, 'build')
into('/') {
from 'dist'
@@ -88,8 +89,9 @@ task tar(type: Tar) {
}
task zip(type: Zip) {
- extension = 'zip'
- archiveFileName = project.name + '-' + project.version + '.' + extension
+ archiveBaseName.set(project.name)
+ archiveVersion.set(project.version.toString())
+ archiveExtension.set('zip')
destinationDirectory = new File(projectDir, 'build')
into('/') {
from 'dist'
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org