This is an automated email from the ASF dual-hosted git repository. dsmiley pushed a commit to branch branch_10x in repository https://gitbox.apache.org/repos/asf/solr.git
commit 5cd107ce75b79f44818a422bee22421223888c35 Author: John Costa <[email protected]> AuthorDate: Mon Nov 16 11:30:27 2026 -0800 Use new when throwing GradleException in root build.gradle (#5349) (cherry picked from commit 4b86255fb2e8551de3b38ef2a4bfa3006ee97aff) --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index a402db4213a..cc477530598 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)
