You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/01/10 07:06:19 UTC

[GitHub] [solr] dweiss commented on pull request #501: Dynamically discover lucene version for use in build

dweiss commented on pull request #501:
URL: https://github.com/apache/solr/pull/501#issuecomment-1008589424


   > So now I try to just pull it from versions.props, and that works.
   
   In short: no. If you plan to extract Lucene version/ dependency version from within the build file then you should be using getVersion("artifact coordinates") - this will work. But this method can be used at build execution time only so sometimes you have to resort to using providers. An example is in icu.gradle in Lucene:
   ```
     // Resolve version lazily (can't resolve at configuration time).
     def icu4jVersionProvider = project.provider { getVersion('com.ibm.icu', 'icu4j') } 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org