Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump minimum compiler version to Java 16 #71989

Merged
merged 9 commits into from
May 25, 2021

Conversation

mark-vieira
Copy link
Contributor

Now that we've upgrade to Gradle 7.0 we can bump the minimum compiler version to Java 16 to be in line with the bundled JDK and put us back on a supported version (Java 15 is EOL).

I've also relaxed the JDK requirement for builds run via IntelliJ. The idea here being that the JDK is set by the build, but the build in turn requires a certain JDK. To avoid this awkward chicken/egg situation we just ignore the requirement when running in the IDE. We still fail on the CLI in these scenarios though.

@elasticmachine elasticmachine added the Team:Delivery Meta label for Delivery team label Apr 20, 2021
@elasticmachine
Copy link
Collaborator

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

@mark-vieira
Copy link
Contributor Author

Gonna need to get https://github.com/elastic/infra/pull/28480 merged in first since we only have Java 16 on our Linux workers.

Copy link
Contributor

@breskeby breskeby left a comment

Choose a reason for hiding this comment

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

yay 👍

@mark-vieira
Copy link
Contributor Author

@elasticmachine update branch

@mark-vieira
Copy link
Contributor Author

I think this might also be blocked on the release of 6.2.0 of the Gradle shadow plugin.

GradleUp/shadow#658

@mark-vieira
Copy link
Contributor Author

Windows builds are failing due to the lack of JDK 16 on the agents. The ansible playbooks have been updated but there's another issue blocking the new images being build. Have an issue open with infra for this.

@mark-vieira
Copy link
Contributor Author

@elasticmachine update branch

@mark-vieira
Copy link
Contributor Author

@elasticmachine update branch

@mark-vieira mark-vieira merged commit bc9521e into elastic:master May 25, 2021
@mark-vieira mark-vieira deleted the minimum-compile-java-16 branch May 25, 2021 19:43
mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request May 25, 2021
# Conflicts:
#	.ci/java-versions.properties
mark-vieira added a commit that referenced this pull request May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team >upgrade v7.14.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants