You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2023/04/06 14:25:18 UTC

[solr] 02/06: Make it easy to build a non-snapshot version (#1544)

This is an automated email from the ASF dual-hosted git repository.

epugh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 7d13e83111911e3c92a66e8eee8d8775eafecc62
Author: Houston Putman <ho...@apache.org>
AuthorDate: Wed Apr 5 09:29:36 2023 -0400

    Make it easy to build a non-snapshot version (#1544)
---
 build.gradle | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 4ee6f785ecd..ebd9b85786a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -46,7 +46,11 @@ version = {
   //  -Dversion.suffix=jenkins123
   
   String versionSuffix = propertyOrDefault('version.suffix', 'SNAPSHOT')
-  return propertyOrDefault('version.release', "${baseVersion}-${versionSuffix}")
+  String v = propertyOrDefault('version.release', "${baseVersion}-${versionSuffix}")
+  if (v.endsWith("-")) {
+    v = v.substring(0, v.length() - 1)
+  }
+  return v
 }()
 description = 'Grandparent project for Apache Solr'