-
Notifications
You must be signed in to change notification settings - Fork 680
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
Bump up dependency analyze to 1.10.0 #2643
Bump up dependency analyze to 1.10.0 #2643
Conversation
I was curious about why these new errors appeared immediately after the upgrade. From the community, I learned that the new changes in gradle-dependency-analyze (as detailed in gradle-dependency-analyze/gradle-dependency-analyze#527) have introduced these warnings. While some of these dependencies seem to be transitive, I cannot see them being directly used in the project. I wonder if there might be another reason for these warnings beyond them being transitive dependencies. |
These I think seem reasonable from a quick glance. |
@dsmiley Should I create JIRA for this one? |
@risdenk I know you introduced this plugin but IMO it's more annoying & burdensome than helpful. Maybe we should back out this plugin? I was somewhat appreciative of the Maven equivalent, which had some imperfections but mostly worked. The Gradle one seems more troublesome, requiring that we explicitly list dependencies that are not in fact directly used. Nowadays, I just want the build to be simpler. JIRA issues aren't required for build improvements in general. |
Planning to merge this shortly! |
@risdenk Should I backport this change to 9_x? |
@iamsanjay yes |
since we talked about this during the community meeting - I agree the verbosity is a pain but this basically moves runtime issues into build time issues. Every case I've looked into the classes/dependencies in question were used in the code somewhere. There could be bugs in the plugin but they seem to get fixed overtime. It usually is the case the plugin seems to miss things that needed to be included (which is what this upgrade addresses). I haven't seen a case where a dependency needed to be declared but then wasn't actually used. |
Upgrades the ca.cutterslade.analyze version to 1.10.0 to facilitate the ongoing Java upgrade (SOLR-17321) (cherry picked from commit 3deb0a4)
Summary
This PR upgrades the Gradle dependency version to 1.10.0 to facilitate the ongoing Java upgrade.
Background
We initially planned to upgrade the Gradle dependency to version 1.9.2. However, after implementing this upgrade, we encountered "unusedDeclaredArtifacts" errors. Further investigation revealed that these errors were due to a known bug (gradle-dependency-analyze/gradle-dependency-analyze#527) in version 1.9.2. This bug has been resolved in version 1.10.0.
Changes Introduced
Upon upgrading to version 1.10.0, several build.gradle files were found to be missing dependencies that are now required due to changes introduced in this newer version (as per commit 2bc05cf9df5690c4). This PR addresses these errors by adding the necessary dependencies to the relevant build.gradle files. Additionally, some of these dependencies were not needed for Java 11. However, when running analyzeDependencies for Java 21, new "usedUndeclaredArtifacts" errors were encountered. To resolve these issues, the necessary dependencies were added to the relevant build.gradle files.
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.