{"action":"created","issue":{"url":"https://api.github.com/repos/jrtom/jung/issues/66","repository_url":"https://api.github.com/repos/jrtom/jung","labels_url":"https://api.github.com/repos/jrtom/jung/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/jrtom/jung/issues/66/comments","events_url":"https://api.github.com/repos/jrtom/jung/issues/66/events","html_url":"https://github.com/jrtom/jung/issues/66","id":181006682,"number":66,"title":"Xlint:path error with JUNG, Gradle and Error Prone","user":{"login":"jbduncan","id":2482228,"avatar_url":"https://avatars.githubusercontent.com/u/2482228?v=3","gravatar_id":"","url":"https://api.github.com/users/jbduncan","html_url":"https://github.com/jbduncan","followers_url":"https://api.github.com/users/jbduncan/followers","following_url":"https://api.github.com/users/jbduncan/following{/other_user}","gists_url":"https://api.github.com/users/jbduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/jbduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbduncan/subscriptions","organizations_url":"https://api.github.com/users/jbduncan/orgs","repos_url":"https://api.github.com/users/jbduncan/repos","events_url":"https://api.github.com/users/jbduncan/events{/privacy}","received_events_url":"https://api.github.com/users/jbduncan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-04T21:14:39Z","updated_at":"2016-10-07T21:05:56Z","closed_at":null,"body":"When I try to run `gradle run` with the following `build.gradle`\r\n```gradle\r\nplugins {\r\n  id 'application'\r\n  id 'java'\r\n  id 'net.ltgt.errorprone' version '0.0.8'\r\n}\r\n\r\ngroup 'org.jbduncan'\r\nversion '1.0-SNAPSHOT'\r\n\r\nsourceCompatibility = 1.8\r\n\r\nmainClassName = 'org.jbduncan.helloworld.HelloWorld'\r\n\r\nrepositories {\r\n  jcenter()\r\n}\r\n\r\ndependencies {\r\n  compile 'net.sf.jung:jung-graph-impl:2.1.1'\r\n  errorprone 'com.google.errorprone:error_prone_core:2.0.11'\r\n}\r\n\r\ntasks.withType(JavaCompile) {\r\n  options.encoding = 'UTF-8'\r\n  options.compilerArgs = [\r\n    '-Xlint:all',\r\n    '-Werror'\r\n  ]\r\n}\r\n```\r\n\r\nand this class\r\n```java\r\npackage org.jbduncan.helloworld;\r\n\r\npublic final class HelloWorld {\r\n  public static void main(String[] args) {\r\n    System.out.println(\"Hello, world!\");\r\n  }\r\n}\r\n```\r\n\r\nit emits the following message.\r\n```\r\n:compileJava                                                                     \r\nwarning: [path] bad path element \"C:\\Users\\Jonathan\\.gradle\\caches\\modules-2\\files-2.1\\net.sf.jung\\jung-graph-impl\\2.1.1\\8293acb2ab4c00a3939cb99a8751e5d38a4299dc\\jung-api-2.1.1.jar\": no such file or directory\r\nwarning: [path] bad path element \"C:\\Users\\Jonathan\\.gradle\\caches\\modules-2\\files-2.1\\net.sf.jung\\jung-graph-impl\\2.1.1\\8293acb2ab4c00a3939cb99a8751e5d38a4299dc\\guava-19.0.jar\": no such file or directory\r\nwarning: [path] bad path element \"C:\\Users\\Jonathan\\.gradle\\caches\\modules-2\\files-2.1\\net.sf.jung\\jung-api\\2.1.1\\e47ee4efdfacce12f0af620747d9d0e44bf2eaa4\\guava-19.0.jar\": no such file or directory\r\nerror: warnings found and -Werror specified\r\n1 error                     \r\n3 warnings\r\n:compileJava FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':compileJava'.\r\n> Compilation failed with exit code 1; see the compiler error output for details.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 5.488 secs\r\n```\r\n\r\nWhen I investigate the contents of my Gradle cache, I can see that, indeed, the jar files mentioned above simply don't exist.\r\n\r\nWhen I look into `C:\\Users\\Jonathan\\.gradle\\caches\\modules-2\\files-2.1\\net.sf.jung\\jung-graph-impl\\2.1.1\\8293acb2ab4c00a3939cb99a8751e5d38a4299dc\\jung-graph-impl-2.1.1.jar`, the `META-INF/MANIFEST.MF` contains this text.\r\n```\r\nManifest-Version: 1.0\r\nArchiver-Version: Plexus Archiver\r\nCreated-By: Apache Maven 3.0.5\r\nBuilt-By: jrtom\r\nBuild-Jdk: 1.8.0-google-v7\r\nClass-Path: jung-api-2.1.1.jar guava-19.0.jar\r\n```\r\n\r\nI get the same problem with JUNG versions 2.1 and 2.0, and no other library with dependencies I've tried seems to have this problem. \r\n\r\nHowever the problem goes away when I exclude from `build.gradle` the lines `id 'net.ltgt.errorprone' version '0.0.8'` and `errorprone 'com.google.errorprone:error_prone_core:2.0.11'`, so it's not clear to me if this is a problem with JUNG or if it's [gradle-errorprone-plugin](https://github.com/tbroyer/gradle-errorprone-plugin) or Error Prone related."},"comment":{"url":"https://api.github.com/repos/jrtom/jung/issues/comments/252361046","html_url":"https://github.com/jrtom/jung/issues/66#issuecomment-252361046","issue_url":"https://api.github.com/repos/jrtom/jung/issues/66","id":252361046,"user":{"login":"jbduncan","id":2482228,"avatar_url":"https://avatars.githubusercontent.com/u/2482228?v=3","gravatar_id":"","url":"https://api.github.com/users/jbduncan","html_url":"https://github.com/jbduncan","followers_url":"https://api.github.com/users/jbduncan/followers","following_url":"https://api.github.com/users/jbduncan/following{/other_user}","gists_url":"https://api.github.com/users/jbduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/jbduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbduncan/subscriptions","organizations_url":"https://api.github.com/users/jbduncan/orgs","repos_url":"https://api.github.com/users/jbduncan/repos","events_url":"https://api.github.com/users/jbduncan/events{/privacy}","received_events_url":"https://api.github.com/users/jbduncan/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T21:05:56Z","updated_at":"2016-10-07T21:05:56Z","body":"Thanks for getting back @jrtom. I just upgraded from Error Prone 2.0.11 to 2.0.13, but that doesn't seem to be fixed the problem.\r\n\r\nI'll report this on Error Prone and let you know if I manage to move things forward."}}
{"actor":{"display_login":"jbduncan"}}