-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove internal shaded jar import from ConfigureJdksIdeaPluginXml
#499
base: develop
Are you sure you want to change the base?
Remove internal shaded jar import from ConfigureJdksIdeaPluginXml
#499
Conversation
Generate changelog in
|
ab1f063
to
f2ddaa9
Compare
ImmutableMap
from Guava rather than internal gradle-apiConfigureJdksIdeaPluginXml
// Using Map rather than ImmutableMap to avoid a Guava dependency. | ||
Map<String, String> projectNodeAttributes = Map.of("version", "4"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could also add a Guava dependency to gradle-jdks-groovy
instead of using Map.of
. I saw this class gets called from ToolchainsPlugin
, which already had a Guava dep.
- ToolchainsPlugin
- PalantirGradleJdksIdeaPlugin
- ConfigureJdksIdeaPluginXml
Do we need to keep gradle-jdks-groovy
dependency-free?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use Map.of
than require Guava anyway, bonus to avoid the dependency.
Invalidated by push of 32d468b
Thanks @CRogers! |
Problem
When opening a private project in IntelliJ, we're seeing a strange import error during the Gradle project sync phase.
Here's the condensed stacktrace.
Theory
It looks like this plugin imports
ImmutableMap
from an internal shaded jar in Gradle. I suspect this import was accidental.It's also possible the import as written was intentional, and the private repo I'm working on is doing something it's not supposed to with its
settings.gradle
. 😅If we think that's the case, I'm happy to close this PR.