This is an automated email from the ASF dual-hosted git repository.
jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 518717a GEODE-5694 Do not create or publish zip distributions (#2424)
518717a is described below
commit 518717a50a404642b28751fbbaeb4438111c169a
Author: Sean Goller <[email protected]>
AuthorDate: Tue Sep 11 10:38:07 2018 -0700
GEODE-5694 Do not create or publish zip distributions (#2424)
* Zip archive is removed from publication list.
* Geode uses the maven-publish plugin which has better control of
publication tasks. Prefer using it instead.
* Fully disable distZip and distSrcZip, even when specified on commandline
Co-Authored-by: Sean Goller <[email protected]>
Co-Authored-by: Robert Houghton <[email protected]>
---
geode-assembly/build.gradle | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/geode-assembly/build.gradle b/geode-assembly/build.gradle
index 4a20924..e481aac 100755
--- a/geode-assembly/build.gradle
+++ b/geode-assembly/build.gradle
@@ -30,12 +30,13 @@ extraArchive {
publishing {
publications {
maven(MavenPublication) {
- artifactId = 'apache-geode'
+ afterEvaluate {
+ artifactId = 'apache-geode'
- artifacts = []
+ artifacts = []
- artifact distTar
- artifact distZip
+ artifact distTar
+ }
}
}
}
@@ -54,6 +55,7 @@ configurations.all {
}
gradle.taskGraph.whenReady( { graph ->
+ tasks.install.enabled = false
tasks.withType(Tar).each { tar ->
tar.compression = Compression.GZIP
tar.extension = 'tgz'
@@ -68,6 +70,16 @@ gradle.taskGraph.whenReady( { graph ->
distTar.dependsOn(jarTasks)
distZip.dependsOn(jarTasks)
}
+ srcDistZip.enabled = false
+ distZip.enabled = false
+
+ tasks.withType(AbstractArchiveTask).findAll {
+ it.name.toLowerCase().contains("dist")
+ }.each { archive ->
+ archive.doLast {
+ ant.checksum file:"${archive.archivePath}", algorithm:"sha-256", format:
'MD5SUM', fileext: '.sha256'
+ }
+ }
})
configurations {
@@ -320,16 +332,6 @@ task writeBuildInfo {
}
}
-gradle.taskGraph.whenReady( { graph ->
- tasks.withType(AbstractArchiveTask).findAll {
- it.name.toLowerCase().contains("dist")
- }.each { archive ->
- archive.doLast {
- ant.checksum file:"${archive.archivePath}", algorithm:"sha-256", format:
'MD5SUM', fileext: '.sha256'
- }
- }
-})
-
distributions {
src {
baseName = 'apache-geode'