You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2024/08/15 20:29:39 UTC

(lucene) 01/02: Fix icu's regeneration script: instead of getVersion we can just pick the version from the catalog.

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

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

commit 8b25c4dd0b2413b5c629238deb6f528adca8e12c
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Thu Aug 15 22:28:49 2024 +0200

    Fix icu's regeneration script: instead of getVersion we can just pick the version from the catalog.
---
 gradle/generation/icu.gradle | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gradle/generation/icu.gradle b/gradle/generation/icu.gradle
index 6e3d5f9062f..fa254d4a1bb 100644
--- a/gradle/generation/icu.gradle
+++ b/gradle/generation/icu.gradle
@@ -65,10 +65,8 @@ configure(project(":lucene:analysis:icu")) {
     icupkg = file("${icuBinDir}/icupkg")
   }
 
-  // Resolve version lazily (can't resolve at configuration time).
-  def icu4jVersionProvider = project.provider { getVersion('com.ibm.icu', 'icu4j') }
   // lazy gstring with ICU version.
-  def icu4jVersion = "${-> icu4jVersionProvider.get()}"
+  def icu4jVersion = deps.icu4j.get().version
 
   def icuCompileTask = Os.isFamily(Os.FAMILY_WINDOWS) ? "compileIcuWindows" : "compileIcuLinux"