OpenSearch/buildSrc
Mark Vieira 70cfedf542
Refactor global build info plugin to leverage JavaInstallationRegistry (#54026)
This commit removes the configuration time vs execution time distinction
with regards to certain BuildParms properties. Because of the cost of
determining Java versions for configuration JDK locations we deferred
this until execution time. This had two main downsides. First, we had
to implement all this build logic in tasks, which required a bunch of
additional plumbing and complexity. Second, because some information
wasn't known during configuration time, we had to nest any build logic
that depended on this in awkward callbacks.

We now defer to the JavaInstallationRegistry recently added in Gradle.
This utility uses a much more efficient method for probing Java
installations vs our jrunscript implementation. This, combined with some
optimizations to avoid probing the current JVM as well as deferring
some evaluation via Providers when probing installations for BWC builds
we can maintain effectively the same configuration time performance
while removing a bunch of complexity and runtime cost (snapshotting
inputs for the GenerateGlobalBuildInfoTask was very expensive). The end
result should be a much more responsive build execution in almost all
scenarios.

(cherry picked from commit ecdbd37f2e0f0447ed574b306adb64c19adc3ce1)
2020-03-23 15:30:10 -07:00
..
reaper Auto-format buildSrc (#51043) 2020-01-16 10:26:27 +00:00
src Refactor global build info plugin to leverage JavaInstallationRegistry (#54026) 2020-03-23 15:30:10 -07:00
.gitignore Build: Add fake project to include buildSrc as normal project 2016-05-06 22:26:15 -07:00
build.gradle Introduce aarch64 packaging (#53914) (#53926) 2020-03-22 11:58:11 -04:00
settings.gradle Remove empty buildSrc subproject (#47415) 2019-10-01 16:34:31 -07:00
version.properties Upgrade the bundled JDK to JDK 14 (#53748) 2020-03-18 16:18:12 -04:00