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

Enforce fail on deprecated gradle usage #59598

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

breskeby
Copy link
Contributor

@breskeby breskeby commented Jul 15, 2020

This enforces the Gradle build to fail if a deprecated Gradle API was used in the build.

This guarantees us that we don't let deprecations sneak back into the build over time. A side effect of this though is, that when updating gradle versions, we need to tackle new deprecations as part of the update.

@breskeby breskeby self-assigned this Jul 15, 2020
@breskeby breskeby added :Delivery/Build Build or test infrastructure Team:Core/Infra Meta label for core/infra team v7.8.2 v7.9.0 v8.0.0 labels Jul 15, 2020
@breskeby breskeby marked this pull request as ready for review July 15, 2020 15:09
@elasticmachine
Copy link
Collaborator

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

@mark-vieira
Copy link
Contributor

A side effect of this though is, that when updating gradle versions, we need to tackle new deprecations as part of the update.

This seems reasonable. We already do updates as PRs to ensure nothing explodes. Seems trivial to remove any newly introduced deprecations as part of that work.

Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

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

👍

@breskeby
Copy link
Contributor Author

yeah, Tackling depreciations as part of the Gradle update is IMO the best way to deal with them.

@breskeby breskeby merged commit 5c4a3ec into elastic:master Jul 16, 2020
@breskeby breskeby deleted the fail-on-deprecated-gradle-usage branch July 16, 2020 08:34
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jul 17, 2020
breskeby added a commit that referenced this pull request Jul 20, 2020
* Enforce fail on deprecated gradle usage (#59598)
* Fix branch specific deprecated gradle api usages
* Fix archiveVersion property usage
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jul 20, 2020
breskeby added a commit that referenced this pull request Jul 20, 2020
* Enforce fail on deprecated gradle usage (#59598)
* Fix remaining gradle api deprecations
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jul 20, 2020
* Enforce fail on deprecated gradle usage (elastic#59598)
* Fix remaining gradle api deprecations
@mark-vieira mark-vieira added Team:Delivery Meta label for Delivery team and removed Team:Core/Infra Meta label for core/infra team labels 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.8.2 v7.9.0 v7.10.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants