{"action":"created","issue":{"url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1032","labels_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1032/labels{/name}","comments_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1032/comments","events_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1032/events","html_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/1032","id":84045450,"number":1032,"title":"Makes Gradle to work correct; also fixes Ant","user":{"login":"sgrebnov","id":981580,"avatar_url":"https://avatars.githubusercontent.com/u/981580?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrebnov","html_url":"https://github.com/sgrebnov","followers_url":"https://api.github.com/users/sgrebnov/followers","following_url":"https://api.github.com/users/sgrebnov/following{/other_user}","gists_url":"https://api.github.com/users/sgrebnov/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrebnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrebnov/subscriptions","organizations_url":"https://api.github.com/users/sgrebnov/orgs","repos_url":"https://api.github.com/users/sgrebnov/repos","events_url":"https://api.github.com/users/sgrebnov/events{/privacy}","received_events_url":"https://api.github.com/users/sgrebnov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-02T14:20:40Z","updated_at":"2015-08-05T10:41:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/pulls/1032","html_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/1032","diff_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/1032.diff","patch_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/1032.patch"},"body":"1. `build.gradle` is automatically overwritten by default one (special Cordova logic) so no dependencies are included (https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/build.js#L244). So `build-extras.gradle` is required to fix this.\r\n\r\n2. Since default cordova gradle config includes `libs/*.jars` we will end up w/ mulriple definitions problem so we add special line to NOT include duplicate 'FacebookLib/libs/*.jar' files\r\n```\r\nconfigurations.compile.dependencies.clear()\r\n```\r\n\r\n3. Minor fix for Ant not to fail on post build step.\r\n\r\nPS. Adding dependencies via corresponding gradle configuration is the only way to support multiple plugins which rely on the same dependency. If you use 'libs' folder then it will fail as gradle won't be able to rely on its smart [Dependency Managment/Versioning logic](https://docs.gradle.org/current/userguide/dependency_management.html)"},"comment":{"url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/comments/127953031","html_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/1032#issuecomment-127953031","issue_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1032","id":127953031,"user":{"login":"aogilvie","id":970364,"avatar_url":"https://avatars.githubusercontent.com/u/970364?v=3","gravatar_id":"","url":"https://api.github.com/users/aogilvie","html_url":"https://github.com/aogilvie","followers_url":"https://api.github.com/users/aogilvie/followers","following_url":"https://api.github.com/users/aogilvie/following{/other_user}","gists_url":"https://api.github.com/users/aogilvie/gists{/gist_id}","starred_url":"https://api.github.com/users/aogilvie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aogilvie/subscriptions","organizations_url":"https://api.github.com/users/aogilvie/orgs","repos_url":"https://api.github.com/users/aogilvie/repos","events_url":"https://api.github.com/users/aogilvie/events{/privacy}","received_events_url":"https://api.github.com/users/aogilvie/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T10:41:53Z","updated_at":"2015-08-05T10:41:53Z","body":"@sgrebnov please direct the PR to develop branch and I'll merge ASAP"}}