dweiss commented on a change in pull request #523:
URL: https://github.com/apache/lucene/pull/523#discussion_r765559356



##########
File path: lucene/distribution/build.gradle
##########
@@ -126,3 +126,31 @@ tasks.matching {it.name in [
 ]}.all {
   group "distribution"
 }
+
+// Prepare a sonatype ZIP bundle with all maven artifacts.
+task prepareSonatypeBundle(type: Zip) {
+  description "Prepare Sonatype Nexus ZIP bundle with all Maven artifacts. 
Requires -Prelease.dir=..."
+
+  destinationDirectory = file("${buildDir}/sonatype")
+  archiveFileName = "artifact-bundle-lucene.zip"
+
+  from({ ->
+    def releaseDir = propertyOrDefault("release.dir", null)
+    if (releaseDir == null) {
+      throw new GradleException("Pass an explicit release directory path with 
-Prelease.dir=...")
+    }
+    if (!file("${releaseDir}/.gitrev").exists()) {

Review comment:
       Just out of curiosity - did you use this task or ant, @jpountz ? Should 
I polish this and commit it in or do we want to work out some other solution?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to