Skip to content

Conversation

@breskeby
Copy link
Contributor

No description provided.

@breskeby breskeby requested a review from a team as a code owner December 23, 2024 11:42
@breskeby breskeby added >non-issue :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v8.18.0 labels Dec 23, 2024
@breskeby breskeby self-assigned this Dec 23, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)


tasks.named('test').configure {
if (buildParams.getRuntimeJavaVersion().map{ it.majorVersion.toInteger() }.get() >= 21) {
buildParams.withMinimumJavaRuntimeVersion(JavaVersion.VERSION_21) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this conditional on main anymore given the minimum runtime version is 21.


Boolean isGraalVmRuntime();

void withMinimumJavaRuntimeVersion(JavaVersion version, Runnable runnable);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgive my bikeshedding: we use the term "minimum runtime version" to mean something slightly different. I also wonder if the name here should give some clue as to the fact that the given Runnable is conditional. Some kind of "if" or "when" prefix might better. Perhaps ifJavaRuntimeVersion or ifJavaRuntimeVersionCompatibleWith?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants