Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Add module declaration#38

Merged
rouzwawi merged 8 commits intomasterfrom
rouz/modularize
Mar 16, 2020
Merged

Add module declaration#38
rouzwawi merged 8 commits intomasterfrom
rouz/modularize

Conversation

@rouzwawi
Copy link
Contributor

This was prompted by me trying to modularize another library that transitively dependeds on dns-java. I ran into an issue when importing this as an automatic module, caused by dnsjava containing classes in the default/unnamed package:

[WARNING] Can't extract module name from dnsjava-2.1.8.jar: lookup.class found in top-level directory (unnamed package not allowed in module)

These are removed in version 3.0.0

Upgrading dnsjava to 3.x

Although the readme mentions that a lot of things has changed, we seem to be in the clear since we're using such a small portion of the API (Lookup, Record and SRVRecord)

Upgrade to Java 9

Java 9 was released September 2017. It should not be a controversial requirement. Also, given the level of stability in this library, it would be safe to continue using v3.1.5 for users still on Java 8.

Dropping jsr305

The value of these annotations where minimal. A small price to pay for enabling modules. cc #33


This PR should make #36 redundant

@rouzwawi rouzwawi requested a review from pettermahlen March 15, 2020 01:24
Copy link
Member

@pettermahlen pettermahlen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review - didn't have time to check the tests yet, but I have some questions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants