Skip to content
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

Published jar's pom.xml lists outdated dnsjava dependency #58

Closed
jbrinegar opened this issue Feb 2, 2023 · 1 comment
Closed

Published jar's pom.xml lists outdated dnsjava dependency #58

jbrinegar opened this issue Feb 2, 2023 · 1 comment

Comments

@jbrinegar
Copy link

I experienced this bug in my application, which is not a recent bug:
dnsjava/dnsjava#177

I am using the latest com.spotify:dns:3.2.2, but I was not specifying the downstream dnsjava dependency version explicitly. Note that this repo's pom.xml lists:

        <dependency>
            <groupId>dnsjava</groupId>
            <artifactId>dnsjava</artifactId>
            <version>3.4.2</version>
        </dependency>

However, I noted that my resolved jar in a distribution is:

$ ls -al *dns*
-rw-rw-r-- 1 root root  37162 Dec 14 18:06 dns-3.2.2.jar
-rw-rw-r-- 1 root root 399838 Dec 14 18:06 dnsjava-3.0.2.jar

This lines up with what gradle's dependencies tool shows:

|    |    |    |    +--- com.spotify:dns -> 3.2.2
|    |    |    |    |    +--- dnsjava:dnsjava:3.0.2

Finally, I observed that the pom.xml included in the com.spotify:dns:3.2.2 jar is not 3.4.2:

        <dependency>
            <groupId>dnsjava</groupId>
            <artifactId>dnsjava</artifactId>
            <version>3.0.2</version>
        </dependency>

I resolved my issue by forcing dnsjava to the latest version (3.5.2). It would be great if users of this library did not need to do that manually though!

@jbrinegar
Copy link
Author

3.3.2 is fine. Not sure how I ended up with 3.2.2 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant