-
Notifications
You must be signed in to change notification settings - Fork 870
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
Maven coordinates for shaded javac seem incorrect #169
Comments
In particular, if there are Error Prone plugin checkers on the processor path, that could result in a different javac version also getting pulled in there. |
I think that what you're saying is that another If that's the case, that sounds reasonable to me. What you'd like is for one library's error-prone |
@ronshapiro yes, that's exactly right, we were only seeing the not-shaded version in the processorpath, which broke GJF. |
Updated the wording |
Any thoughts on this? Seems like a fairly serious issue with the release in its current state, as no one can use custom error prone checkers and GJF-using tools like dagger in the same project |
I'm going to fix this soonish. |
I published a new javac version |
Great. I hate to be that person, but any chance of a (patch) release soon? Otherwise we can just do a fork of this internally for now |
@hzsweers You can also use jitpack to compile and provide the current master snapshot version. See https://jitpack.io/#google/google-java-format/master-SNAPSHOT for details how to declare a dependency in Maven, Gradle, etc. |
We run on buck, so unfortunately jitpack isn't a straightforward option. It's easy enough for us to take a cut of master and stick it up on our internal artifactory though, was just asking in case there was a release planned for like, tomorrow or something before going through the trouble :) |
Thanks Liam! |
(See google/google-java-format#169) ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=166913466
(See google/google-java-format#169) ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=166913466
In looking at the 1.3 release pom, it seems like the javac configuration is incorrect.
From: https://search.maven.org/remotecontent?filepath=com/google/googlejavaformat/google-java-format-parent/1.3/google-java-format-parent-1.3.pom
The maven coordinates for the shaded javac are still the same as the normal javac, which means it will compete with any existing javac jars on the path even though the sources used by GJF are shaded, so if the normal javac jar is on the path and wins, GJF will fail to find the classes because they won't be shaded. It seems to me that the
artifactId
should also be different.This is to say: If someone has another version of the error-prone javac jar on the path, it could be used instead of this shaded one, and subsequently break GJF since it depends on shaded package names that would no longer be present.
The text was updated successfully, but these errors were encountered: