-
Notifications
You must be signed in to change notification settings - Fork 164
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
Scala and required CDI dependency #378
Comments
I did a quick check. The dependency provides the For example:
I don't think we can drop |
Yes, that is the annotation causing the required dependency. I am unfamiliar with CDI, so to me the comment implied that the annotation may not be necessary anymore. However, we would need someone who uses CDI to clarify. |
The description is here:
Me too. However, it obviously has some intended semantic. We cannot change here any more after the JCache Spec was released. |
Tagged with 2.0 for now. Any comments whether we can rid of the dependency, at least for Version 2, are much appreciated. |
I think the comment was alluding to adding |
Possible other solution: Split the API jar into two jars and separate the annotations. I just tagged this with milestone 1.2, maybe its worth to talk about another MR. |
Unlike Java, Scala fully resolves all annotations and requires them to be on the classpath when loading a class. This means that Scala JCache users in a non-CDI environment, such as Guice, must include the
provided
scoped dependency. The pom.xml states that this dependency could be removed with CDI 1.1, which was released 4 years ago. This quirk of Scala surprised a user and, if the comment is accurate, it would be nice to remove the requirement.The text was updated successfully, but these errors were encountered: