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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]