Skip to content

Move BuildParams class to 'minimumRuntime' source set #49890

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

Merged
merged 2 commits into from
Dec 6, 2019

Conversation

mark-vieira
Copy link
Contributor

This commit moves BuildParams and dependent classes to the 'minimumRuntime' source set in order to maintain backwards compatibility with build-tools for builds using a Java 8 runtime.

Closes #49766

…tibility

with build-tools for builds using a Java 8 runtime.

Closes elastic#49766

Signed-off-by: Mark Vieira <[email protected]>
@mark-vieira mark-vieira added the :Delivery/Build Build or test infrastructure label Dec 5, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

@mark-vieira
Copy link
Contributor Author

FYI, this is being done in master and being backported to 7.x just to keep both branches as close as possible, even though #49766 only affects the 7.x branch of the elasticsearch-hadoop project. Doing so will simply make backports from master to 7.x simpler going forward, until such a time as we can remove the need for the minimumRuntime source set from both branches entirely.

@mark-vieira mark-vieira requested a review from rjernst December 5, 2019 22:46
@mark-vieira
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/1

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -155,6 +154,7 @@ public void reset() {
.filter(f -> Modifier.isStatic(f.getModifiers()))
.forEach(f -> {
try {
f.setAccessible(true);
Copy link
Member

Choose a reason for hiding this comment

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

can you please add a comment explaining why this is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a comment to explain the need for this.

@mark-vieira mark-vieira merged commit 1059f82 into elastic:master Dec 6, 2019
mark-vieira added a commit that referenced this pull request Dec 6, 2019
Move BuildParams class to 'minimumRuntime' source set to retain compatibility
with build-tools for builds using a Java 8 runtime.

Closes #49766

(cherry picked from commit 1059f82)
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
Move BuildParams class to 'minimumRuntime' source set to retain compatibility
with build-tools for builds using a Java 8 runtime.

Closes elastic#49766
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
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 v7.6.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] elasticsearch-hadoop build failure
4 participants