-
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
missing transitive dependencies are not detected anymore #15238
Comments
In master we don't use transitive dependencies. |
Reopening the issue as per the discussion we had on FixIt Friday session about #21373. The goal is to have a gradle task which now detects:
This task could be called as part of the Bonus points:
|
This PR #27361 is an example of why having something which detects missing/outdated deps is important IMO. |
Pinging @elastic/es-core-infra |
I think the third party audit that among other things looks for missing classes will detect missing transitive dependencies. Build scans are also enabled on all CI builds or available on the command line with |
When you add or modify a dependency in a plugin, for example, changing azure SDK from 0.7.0 to 0.9.0, you need with gradle to explicitly declare all transitive dependencies.
For example in #15232, upgrading from
com.microsoft.azure:azure-core:0.7.0
tocom.microsoft.azure:azure-core:0.9.0
pulls another transitive dependency as we can see when we rungradle dependencies
:The new dependency is
commons-lang:commons-lang:2.6
.As we did not include it previously in gradle config file, it's never packaged within the final ZIP file and never tested by the license_checker.
When back porting to 2.x, 2.x is using transitive maven dependencies so it's automatically added to the build and to the final ZIP file. That means also that the license_checker catch this:
We should try to:
Having an output like the following would be awesome to copy and paste the result in gradle file :):
WARN
when we buildThe text was updated successfully, but these errors were encountered: