Skip to content

Avoid using Curator's shaded Guava.#18011

Merged
gianm merged 5 commits intoapache:masterfrom
gianm:no-import-shaded
May 16, 2025
Merged

Avoid using Curator's shaded Guava.#18011
gianm merged 5 commits intoapache:masterfrom
gianm:no-import-shaded

Conversation

@gianm
Copy link
Contributor

@gianm gianm commented May 16, 2025

IDEs sometimes auto-complete Guava classes using Curator's shaded versions. We don't want to use this. This patch switches all such cases to regular Guava, and adds a checkstyle rule to catch future cases.

IDEs sometimes auto-complete Guava classes using Curator's shaded
versions. We don't want to use this. This patch switches all such
cases to regular Guava, and adds a checkstyle rule to catch future cases.
Copy link
Member

@kgyrtkirk kgyrtkirk left a comment

Choose a reason for hiding this comment

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

I was also preparing the same yesterday - for exactly the same reasons :)
should have opened the PR
master...kgyrtkirk:ban-shaded-curator

@kgyrtkirk
Copy link
Member

close/open to restart and supress jacoco

@kgyrtkirk kgyrtkirk closed this May 16, 2025
@kgyrtkirk kgyrtkirk reopened this May 16, 2025
@gianm
Copy link
Contributor Author

gianm commented May 16, 2025

I was also preparing the same yesterday - for exactly the same reasons :) should have opened the PR master...kgyrtkirk:ban-shaded-curator

Oops 🫣

Also, I see you used forbidden-apis in the branch you were working on. That is a better idea than a checkstyle regexp, so I updated this patch.

@gianm gianm merged commit fdd5ae3 into apache:master May 16, 2025
75 checks passed
@gianm gianm deleted the no-import-shaded branch May 16, 2025 20:07
@capistrant capistrant added this to the 34.0.0 milestone Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants