question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unnecessary-looking dependencies

See original GitHub issue

New in Release 22 are a bunch of Maven dependencies that look like they should be compile-only, but are now required at runtime.

[INFO] +- com.google.guava:guava:jar:22.0:compile
[INFO] |  +- com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] |  +- com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
[INFO] |  +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
[INFO] |  \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:28 (11 by maintainers)

github_iconTop GitHub Comments

13reactions
cgdeckercommented, Aug 2, 2017

@cpovirk’s conclusion above seems to have been that of the two options we have, both of which cause issues for some people in some way, we should stick with what we’re currently doing. So 23.0 will continue to have those dependencies as non-optional.

7reactions
guaicommented, Jan 15, 2018

This is madness Just make them provided. Its how they should be declared If this declaration causes bugs then these bugs are somewhere else

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a simple way to remove unused dependencies from a ...
DepClean is a tool to automatically remove dependencies that are included in your Java dependency tree but are not actually used in the...
Read more >
Find Unused Maven Dependencies - Baeldung
In this short tutorial, we learned how to find unused maven dependencies. It's a good practice to check for unused dependencies regularly since ......
Read more >
Refactoring to Improve Testability: Removing Unnecessary ...
This post explains how to refactor code to remove unnecessary dependencies, which is easily found when writing tests. Unnecessary dependencies ...
Read more >
Maven – Optional Dependencies and Dependency Exclusions
Since Maven resolves dependencies transitively, it is possible for unwanted dependencies to be included in your project's classpath.
Read more >
Package issue - Unnecessary dependencies and wrong name?
I expect the dependency 'Files' only but I'm also getting ... so if Xcode doesn't already give you the sort of scheme you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found