Skip to content

JAVA-1612: Include netty-common jar in binary tarball#1164

Merged
tolbertam merged 1 commit into3.xfrom
java1612
Jan 3, 2019
Merged

JAVA-1612: Include netty-common jar in binary tarball#1164
tolbertam merged 1 commit into3.xfrom
java1612

Conversation

@tolbertam
Copy link
Copy Markdown
Contributor

Motivation:

Users of the binary tarball noticed that the netty-common dependency was
missing, via a NoClassDefFoundError for io.netty.util.Timer.

This was caused by netty-common being excluded as it is a transitive
dependency of netty-transport-epoll. While it is also a transitive
dependency of included jars, the maven-assembly-plugin still excludes
it.

Modifications:

Remove the use of useTransitiveFiltering in the dependencySet. This is
ok as netty-transport-epoll dependencies are depended on by the driver jar
already.

Result:

netty-common jar is now included in the lib directory of the binary
tarball.


This took quite a bit of investigation, but I think this is the best solution available. The alternative would be to list netty-common as an explicit dependency of driver-core. Removing useTransitiveFiltering for core does the trick, and shouldn't be an issue as long as netty-transport-epoll does not add a platform specific dependency which seems very unlikely.

Motivation:

Users of the binary tarball noticed that the netty-common dependency was
missing, via a NoClassDefFoundError for io.netty.util.Timer.

This was caused by netty-common being excluded as it is a transitive
dependency of netty-transport-epoll.  While it is also a transitive
dependency of included jars, the maven-assembly-plugin still excludes
it.

Modifications:

Remove the use of useTransitiveFiltering in the dependencySet.  This is
ok as netty-transport-epoll dependencies are depended on by the driver jar
already.

Result:

netty-common jar is now included in the lib directory of the binary
tarball.
@tolbertam tolbertam requested a review from adutra January 3, 2019 18:28
@tolbertam tolbertam added this to the 3.7.0 milestone Jan 3, 2019
Copy link
Copy Markdown
Contributor

@adutra adutra left a comment

Choose a reason for hiding this comment

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

I created a small project using the binary tarball and validated that the project works and a session can be created. 👍

@tolbertam tolbertam merged commit 7854029 into 3.x Jan 3, 2019
@tolbertam tolbertam deleted the java1612 branch January 3, 2019 23:09
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

Successfully merging this pull request may close these issues.

2 participants