{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-java-format/issues/20","labels_url":"https://api.github.com/repos/google/google-java-format/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/google/google-java-format/issues/20/comments","events_url":"https://api.github.com/repos/google/google-java-format/issues/20/events","html_url":"https://github.com/google/google-java-format/issues/20","id":126462193,"number":20,"title":"Provide an artifact that shades or omits Guava and other dependencies","user":{"login":"cpovirk","id":1703908,"avatar_url":"https://avatars.githubusercontent.com/u/1703908?v=3","gravatar_id":"","url":"https://api.github.com/users/cpovirk","html_url":"https://github.com/cpovirk","followers_url":"https://api.github.com/users/cpovirk/followers","following_url":"https://api.github.com/users/cpovirk/following{/other_user}","gists_url":"https://api.github.com/users/cpovirk/gists{/gist_id}","starred_url":"https://api.github.com/users/cpovirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpovirk/subscriptions","organizations_url":"https://api.github.com/users/cpovirk/orgs","repos_url":"https://api.github.com/users/cpovirk/repos","events_url":"https://api.github.com/users/cpovirk/events{/privacy}","received_events_url":"https://api.github.com/users/cpovirk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-13T16:46:21Z","updated_at":"2016-01-13T16:50:14Z","closed_at":null,"body":"As noted in https://github.com/google/dagger/issues/228#issuecomment-171242072 and the comment it replies to, the `google-java-format` jar contains classes from Guava and other dependencies. Those classes end up in Dagger, where they conflict with the version of Guava used by Dagger -- and, because of Maven's lack of support for `-processorpath`, with the version of Guava used by Dagger *users* like Caliper.\r\n\r\nI don't know enough about Maven to say what the right thing here is. The easiest thing, I'd guess, is shading, but for all I know, this may be difficult with the Eclipse classes for some reason."},"comment":{"url":"https://api.github.com/repos/google/google-java-format/issues/comments/171361095","html_url":"https://github.com/google/google-java-format/issues/20#issuecomment-171361095","issue_url":"https://api.github.com/repos/google/google-java-format/issues/20","id":171361095,"user":{"login":"cjp39","id":979369,"avatar_url":"https://avatars.githubusercontent.com/u/979369?v=3","gravatar_id":"","url":"https://api.github.com/users/cjp39","html_url":"https://github.com/cjp39","followers_url":"https://api.github.com/users/cjp39/followers","following_url":"https://api.github.com/users/cjp39/following{/other_user}","gists_url":"https://api.github.com/users/cjp39/gists{/gist_id}","starred_url":"https://api.github.com/users/cjp39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjp39/subscriptions","organizations_url":"https://api.github.com/users/cjp39/orgs","repos_url":"https://api.github.com/users/cjp39/repos","events_url":"https://api.github.com/users/cjp39/events{/privacy}","received_events_url":"https://api.github.com/users/cjp39/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T16:50:14Z","updated_at":"2016-01-13T16:50:14Z","body":"Why does the JAR include its dependencies at all? That's not the way JARs usually work. If it is necessary, can you create a new JAR, `google-java-format-all` for instance, that can be used stand-alone?"}}