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


The following commit(s) were added to refs/heads/main by this push:
     new 4b86255fb2e Use new when throwing GradleException in root build.gradle 
(#5349)
4b86255fb2e is described below

commit 4b86255fb2e8551de3b38ef2a4bfa3006ee97aff
Author: John Costa <[email protected]>
AuthorDate: Mon Nov 16 11:30:27 2026 -0800

    Use new when throwing GradleException in root build.gradle (#5349)
---
 build.gradle | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/build.gradle b/build.gradle
index a033432d46d..5e24335c07e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -78,7 +78,7 @@ ext {
   baseVersion = {
     def m = (version =~ /^(\d+\.\d+\.\d+)(-(.+))?/)
     if (!m) {
-      throw GradleException("Can't strip version to just x.y.z: " + 
rootProject.version)
+      throw new GradleException("Can't strip version to just x.y.z: " + 
rootProject.version)
     }
     return m[0][1]
   }()
@@ -86,7 +86,7 @@ ext {
   majorVersion = {
     def m = (version =~ /^(\d+)\.\d+\.\d+(-(.+))?/)
     if (!m) {
-      throw GradleException("Can't strip version to just major version: " + 
rootProject.version)
+      throw new GradleException("Can't strip version to just major version: " 
+ rootProject.version)
     }
     return m[0][1] as int
   }
@@ -110,7 +110,7 @@ ext {
     def luceneVersion = libs.versions.apache.lucene.get()
     def m = (luceneVersion =~ /^\d+\.\d+\.\d+\b/)
     if (!m) {
-      throw GradleException("Can't strip base version from " + luceneVersion)
+      throw new GradleException("Can't strip base version from " + 
luceneVersion)
     }
     def luceneBaseVersion = m[0]
     logger.debug('Lucene base version (without suffix): {}', luceneBaseVersion)

Reply via email to