-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Add org.opensaml.security to X-Pack Security module-info #102589
Conversation
My IntelliJ was refusing to compile SamlObjectHandler.java unless this extra line was added to module-info.java. This doesn't currently affect official builds, nor anyone else's IntelliJ builds it would seem. However, I thought that since eventually some other change will make this necessary it doesn't hurt to add it now, and might save others time.
Pinging @elastic/es-security (Team:Security) |
This was the error I was getting: The specific lines that were red in the IDE were these ones: Lines 27 to 28 in b7eafce
|
How things are setup here has changed fairly recently; use to be a shadow jar, now a transformed artifact, from #98199. The relevant imports in
The packages containing these classes come from "org.opensaml:opensaml-security-api", which is transformed in the build, see The IDEA is having problems with this transformed artifact, or that the dependency is from a
|
I think that's the main problem and the module issue is just a symptom. I use the latest IntelliJ I can see the same missing imports in the elasticsearch/gradle/build.versions.toml Line 40 in 8e9a88b
|
I think I erroneously removed the module require statement in https://github.com/elastic/elasticsearch/pull/101904/files#r1394808215 (because my IntelliJ version was already not recognizing the shadowed jar deps). |
I think we should merge this PR, and deal with the unrecognized shadow deps separately. |
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.
LGTM
My IntelliJ was refusing to compile SamlObjectHandler.java unless this extra line was added to module-info.java.
This doesn't currently affect official builds, nor anyone else's IntelliJ builds it would seem. However, I thought that since eventually some other change will make this necessary it doesn't hurt to add it now, and might save others time.