Skip to content

Shadow JCTools #476

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

Merged
merged 1 commit into from
Mar 19, 2018
Merged

Shadow JCTools #476

merged 1 commit into from
Mar 19, 2018

Conversation

nebhale
Copy link
Member

@nebhale nebhale commented Mar 19, 2018

Previously, a number of classes from JCTools had been copied and pasted into the code in order to avoid a JAR-level dependencies on the project. While the goal was worthy, the implementation led itself to divergence as the classes in JCTools were improved and bugs were fixed. Even the JCTools project discourages this behavior, instead recommending that you shadow/shade in the dependency. From the RSocket perspective, this has the advantage of allowing the dependency to be specified and kept up to date in the same way that all the other dependencies of the projects are, and yet still not resulting in a JAR-level dependency on JCTools.

This change updates the code to use JCTools directly as a dependency and introduces the shadow plugin, configured to include just the types needed by the code.

Previously, a number of classes from JCTools had been copied and pasted into
the code in order to avoid a JAR-level dependencies on the project.  While the
goal was worthy, the implementation led itself to divergence as the classes in
JCTools were improved and bugs were fixed.  Even the JCTools project
discourages this behavior, instead recommending that you shadow/shade in the
dependency.  From the RSocket perspective, this has the advantage of allowing
the dependency to be specified and kept up to date in the same way that all
the other dependencies of the projects are, and yet still not resulting in a
JAR-level dependency on JCTools.

This change updates the code to use JCTools directly as a dependency and
introduces the shadow plugin, configured to include just the types needed by
the code.
@robertroeser robertroeser merged commit 043e28b into rsocket:1.0.x Mar 19, 2018
@nebhale nebhale deleted the shadow-jctools branch March 19, 2018 19:19
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