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

mybatis-guice is not compatible with guice 4.0-beta #8

Closed
natros opened this issue Aug 2, 2013 · 4 comments
Closed

mybatis-guice is not compatible with guice 4.0-beta #8

natros opened this issue Aug 2, 2013 · 4 comments
Assignees
Milestone

Comments

@natros
Copy link

natros commented Aug 2, 2013

java.lang.ClassNotFoundException: com.google.inject.internal.util.$Preconditions

From release notes[1], there are many changes inside com.google.inject.internal.

[1] https://code.google.com/p/google-guice/wiki/Guice40

@christianpoitras
Copy link
Member

The problem is linked to issue #9

@christianpoitras
Copy link
Member

Changing dependency to Guice 4.0-beta in the POM works.
We will need to change the multibindings extension dependency since it's compile scope.

@christianpoitras
Copy link
Member

@simonetripodi, what do you suggest to do to allow people to use Guice 4.0? The multibindings extension's scope is compile, so the multibindings 3.0 will always be on the classpath which may cause problems.

@christianpoitras
Copy link
Member

As discussed on the dev mailing list, the multibindings plugin will be marked as provided so that users can choose their version of Guice.
Hopefully a unit test will fail if a user forgets to include multibindings as a dependency.
https://groups.google.com/forum/#!topic/mybatis-dev/yUaclrYgddU

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

No branches or pull requests

2 participants