You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2023/04/05 13:29:44 UTC
[solr] branch main updated: Make it easy to build a non-snapshot version (#1544)
This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 1fe2e3ed799 Make it easy to build a non-snapshot version (#1544)
1fe2e3ed799 is described below
commit 1fe2e3ed799728fc696d891f9a351dd064a3b5da
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'