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



##########
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:
       I've modified the code to just check for 'maven' subfolder instead of 
the gitref.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to