-
Notifications
You must be signed in to change notification settings - Fork 8
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
Unable to load class 'com.palantir.javapoet.AnnotationSpec'. #102
Comments
This does not seem like an issue with "javapoet" imo. Have you tried reimporting the project and fully cleaning the build directory? |
I get the same behavior using gradle directly, so It's not an intellij issue. |
Could you try version |
It looks like the same issue as in
Error from inside intellij is the same:
|
What happened?
I switched from square.javapoet 1.13.0 to palantir.javapoet 0.5.0 according to the migration instructions.
Became:
After fixing the fields -> getters as mentioned in the migration instructions, I tried to build the project with Palantir's version of the library, and I got the error:
This is the contents of idea.log:
And building directly with gradle:
I can work around this by using the
implementation
configuration, but that packages the jar into the application. Since this library is meant to be used at compile time, I just want to use it to generate code at compile time and not have it on the classpath at runtime. I was able to accomplish that with thecompileOnly
configuration ofcom.squareup:javapoet
.What did you want to happen?
To get the exact same output as I was getting from square.javapoet.
The text was updated successfully, but these errors were encountered: