-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Dagger 2.14 breaks build #994
Comments
Can you give more of a stack trace (if javac gives you one)? All of our processors should be shading auto common - https://github.com/google/dagger/blob/master/BUILD#L67,L88,L97 so this shouldn't be happening (but there could always be a bug!) |
Looks like |
That's because it's shaded.
$ unzip -l dagger-compiler-2.14.jar | grep MoreTypes
14: 17045 12-05-2017 17:51 dagger/shaded/auto/common/MoreTypes.class
15: 1322 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$WildcardTypeVisitor.class
16: 1326 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$TypeVariableVisitor.class
17: 1644 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$TypeEquivalence.class
18: 4671 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$ReferencedTypes.class
19: 1333 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$PrimitiveTypeVisitor.class
20: 1273 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$NullTypeVisitor.class
21: 1261 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$NoTypeVisitor.class
22: 3133 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$IsTypeVisitor.class
23: 5032 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$IsTypeOf.class
24: 6695 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$HashVisitor.class
25: 1344 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$ExecutableTypeVisitor.class
26: 1289 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$ErrorTypeVisitor.class
27: 919 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$EqualVisitorParam.class
28: 8871 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$EqualVisitor.class
29: 1322 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$DeclaredTypeVisitor.class
30: 1886 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$ComparedElements.class
31: 1585 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$CastingTypeVisitor.class
32: 2869 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$AsElementVisitor.class
33: 1294 12-05-2017 17:51
dagger/shaded/auto/common/MoreTypes$ArrayTypeVisitor.class
34: 963 12-05-2017 17:51 dagger/shaded/auto/common/MoreTypes$2.class
35: 2142 12-05-2017 17:51 dagger/shaded/auto/common/MoreTypes$1.class
…On Tue, Dec 19, 2017 at 2:59 PM Sergey ***@***.***> wrote:
Looks like com.google.auto:auto-common is not there in POM:
http://search.maven.org/#artifactdetails%7Ccom.google.dagger%7Cdagger-compiler%7C2.14%7Cjar
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#994 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAEEEXxO1Y10i525S85bGXz3tKsui1Uiks5tCBWFgaJpZM4RHaQW>
.
|
I did a recursive |
Ohhhh, we may need auto common shaded in the SPI artifact. |
Relevant stacktrace:
|
Ok that's what I suspected. Thanks for finding this, I'll make a fix soon |
Fixes #994 RELNOTES=Fix a NoClassDefFound issue with `2.14` ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179589702
Will you report back if |
2.14.1 fixed it for me - thanks for the quick fix! |
Tried 2.14 (upgrade from 2.13), but it's breaking my build, Android Studio 3.0.1, Java 8. The gRPC-related Dagger part of my build (it's gRPC server code) seems to have particular trouble. gRPC-java 1.8.0. gRPC classes and Dagger classes are not generated. I have not isolated the issue to a small sample project at this point, but a possible cause I see is below, maybe that gives a pointer. I don't have any explicit dependency on Google Auto libs in that part of the build.
The text was updated successfully, but these errors were encountered: