Commit graph

28 commits

Author SHA1 Message Date
Rene Groeschke
dbd82ac418
Suppress gradle welcome messages (#102898) (#102911)
There are not usefuil for us

(cherry picked from commit 7e24080fb2)
2023-12-04 12:08:32 +01:00
Rene Groeschke
bc733b98d8
Fix Painless method lookup over unknown super interfaces (#97062) (#99196)
In Java 21 List now extends SequencedCollection, instead of Collection
directly. When resolving methods Painless starts at the defined type,
and iterates up through super classes and interfaces. Unfortunately if a
superinterface was not known, as it is for SequencedCollection since it
is not in the allowed list of classes, method resolution would give up.
This commit adjusts the superinterface interation to continue traversing
until the method is found or no more superinterfaces are found.

fixes #97022

(cherry picked from commit 16b45575c3)

# Conflicts:
#	gradle.properties

Co-authored-by: Ryan Ernst <ryan@iernst.net>
2023-09-05 15:16:50 +02:00
Mark Vieira
8aa0676cbc Add JAVA20_HOME environment variable to jdk installation list 2023-02-09 07:46:30 -08:00
Rene Groeschke
62868b7abe
[7.17] Add verification metadata for dependencies (#88814) (#89105)
Backports the following commits to 7.17:
 - Add verification metadata for dependencies (#88814)
 - Add missing dependency verification checksums (#89139)
2022-08-08 12:30:59 +02:00
Mark Vieira
f9d77a2dee Add environment variables for Java 18 and 19 Java home 2022-04-13 14:15:20 -07:00
Mark Vieira
8ee7d9b39d
Fix Spotless failing with InvocationTargetException on JDK 16 (#73246) (#73390)
Co-authored-by: Rene Groeschke <rene@elastic.co>
2021-05-25 13:32:43 -07:00
Mark Vieira
77406acab6 Improve error messages around detecting Java installations (#70166) 2021-03-09 10:28:39 -08:00
Rene Groeschke
510e4514e0
Update build to use gradle wrapper 6.8 (7.x backport) (#67327)
- Updates our build to use the latest Gradle 6.8 release which is the last release 
before the major 7.0 release. 
- Resolve available gradle versions using built-in toolchain support
- Fixes deprecated usage of JavaInstallationRegistry
- We replace jdk handling in our build to rely on jvm detection provided by the gradle build tool itself. 
As we rely on environment variables pointing to jdks we wire this into the gradle jdk detection mechanism
- Fix runtime jdk vendor detection used in fips.gradle (#67417)
- Allow Current JDK as valid installation without requiring ENV setup (#67411)

Co-authored-by: Mark Vieira <portugee@gmail.com>
2021-01-18 10:44:34 +01:00
Rene Groeschke
abe4aaab6a Explicitly use TLS 1.2 in Gradle (#63880) 2020-10-19 08:57:10 -07:00
Mark Vieira
24efe12897
Use default memory settings for Gradle daemon (#63445) 2020-10-08 10:32:21 -07:00
Rene Groeschke
e31ebc96f9
Enforce fail on deprecated gradle usage (7.x backport) (#59758)
* Enforce fail on deprecated gradle usage (#59598)
* Fix branch specific deprecated gradle api usages
* Fix archiveVersion property usage
2020-07-20 08:52:30 +02:00
Mark Vieira
d9463983af
Enable parallel builds by default (#52972) 2020-02-28 15:09:40 -08:00
Mark Vieira
8b1ad98219
Disable duplicate project detection in Gradle 6.2 (#52529) 2020-02-19 13:42:16 -08:00
Mark Vieira
01ec922d13
Suppress Gradle deprecation warnings in the console output (#52332) 2020-02-19 09:08:50 -08:00
Alpar Torok
b4303290d9 Testclusters: improove timeout handling (#43440) 2019-07-01 11:39:53 +03:00
Alpar Torok
a48b402e90 Upgrade to Gradle 5.4.1 (#41750)
* Upgrade to Gradle 5.4.1

https://docs.gradle.org/5.4/release-notes.html

Notable: Support for JDK12 , API for incremental tasks

* Use newer version of checkstyle

* Increase stack size
2019-05-09 10:16:11 +03:00
Mark Vieira
a6dc20a09d Create heap dump on OOME (#41031) 2019-04-11 13:41:35 +03:00
Alpar Torok
adc3816e32
Enable the Gradle daemon (#34545) 2018-10-20 11:14:41 +03:00
Jay Modi
309fb22181
Build: forked compiler max memory matches jvmArgs (#33138)
This commit removes the setting of the fork options maximum memory size
in our build plugin and instead adds the value in the gradle.properties
file to be alongside the value set in jvmArgs.

This change is necessary when using parallel compilation as 512m is not
sufficient for parallel compilation on some machines.
2018-08-27 10:26:25 -06:00
Jason Tedor
07b962f31a
Bump Gradle heap to 2 GB (#30535)
We are still seeing rare failures with the Gradle heap set to 1792m,
especially on machines with high core count. Given it appears we are
close to the needed threshold, this commit bumps the heap one more time
to 2 GB.
2018-05-11 14:30:36 -04:00
Jason Tedor
b33806ed15
Bump Gradle heap to 1792m (#30484)
After we stopped forking the compiler, some folks are running into out
of memory errors. This commit is a bump to the Gradle heap to workaround
these out of memory errors (until we can better understand their
source).
2018-05-09 14:29:29 -04:00
Jason Tedor
8b2eee39f0 Increase Gradle heap space to 1536m
This commit increases the heap space for the Gradle processes to
1536m. Note that the default is 1024m.
2017-12-19 21:45:43 -05:00
Jason Tedor
2f95e4a86c Gradle daemon is a demon
This commit adds a property that will prevent the Gradle daemon from
being used for builds (even if one is running). This is to avoid some
nasty issues (e.g., SIGBUS faults and other mmap diasters) that result
from class loaders not being closed properly.
2015-11-25 09:33:12 -05:00
Ryan Ernst
7a6155e12f Build: Consolidate dependencies specified in multiple places
Some dependencies must be specified in a couple places in the build.
e.g. randomized runner is specified both in buildSrc (for the gradle
wrapper plugin), as well as in the test-framework.

This change creates buildSrc/versions.properties which acts similar to
the set of shared version properties we used to have in the maven parent
pom.
2015-11-09 23:59:56 -08:00
Adrien Grand
d6d7af0a6c Upgrade to lucene-5.4.0-snapshot-1712973. 2015-11-09 15:53:27 +01:00
Areek Zillur
13b60e1b92 update to lucene-5.4.x-snapshot-1711508 2015-10-30 15:42:02 -04:00
Ryan Ernst
561436eba3 Build: Add back manifest info to jars
closes #14365
2015-10-29 13:59:52 -07:00
Ryan Ernst
c86100f636 Switch build system to Gradle
See #13930
2015-10-29 11:40:19 -07:00