{"action":"created","issue":{"url":"https://api.github.com/repos/gradle/gradle/issues/801","repository_url":"https://api.github.com/repos/gradle/gradle","labels_url":"https://api.github.com/repos/gradle/gradle/issues/801/labels{/name}","comments_url":"https://api.github.com/repos/gradle/gradle/issues/801/comments","events_url":"https://api.github.com/repos/gradle/gradle/issues/801/events","html_url":"https://github.com/gradle/gradle/issues/801","id":187141367,"number":801,"title":"Native builds don't handle transitive dependencies","user":{"login":"donalmacc","id":861243,"avatar_url":"https://avatars.githubusercontent.com/u/861243?v=3","gravatar_id":"","url":"https://api.github.com/users/donalmacc","html_url":"https://github.com/donalmacc","followers_url":"https://api.github.com/users/donalmacc/followers","following_url":"https://api.github.com/users/donalmacc/following{/other_user}","gists_url":"https://api.github.com/users/donalmacc/gists{/gist_id}","starred_url":"https://api.github.com/users/donalmacc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donalmacc/subscriptions","organizations_url":"https://api.github.com/users/donalmacc/orgs","repos_url":"https://api.github.com/users/donalmacc/repos","events_url":"https://api.github.com/users/donalmacc/events{/privacy}","received_events_url":"https://api.github.com/users/donalmacc/received_events","type":"User","site_admin":false},"labels":[{"id":460356753,"url":"https://api.github.com/repos/gradle/gradle/labels/a:feature","name":"a:feature","color":"0e8a16","default":false},{"id":468844616,"url":"https://api.github.com/repos/gradle/gradle/labels/contributed","name":"contributed","color":"0e8a16","default":false},{"id":281289045,"url":"https://api.github.com/repos/gradle/gradle/labels/in:native","name":"in:native","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-03T17:44:20Z","updated_at":"2016-11-07T12:32:34Z","closed_at":null,"body":"### Expected Behavior\r\nDefining an executable that depends on library A that depends on library B should use library B as a dependency for the executable. \r\nIf A and B are shared libraries, then the resulting shared libraries should be copied as part of the install task\r\nif A and B are static libraries, when linking the executable, both A and B should be used to resolve symbols.\r\n\r\n### Current Behavior\r\n[Forum link to an old issue](https://discuss.gradle.org/t/native-cpp-automatically-handle-transitive-include-dependencies/11200)\r\nDefining an executable dependent on a library A, which itself depends on library B ignores library B when building the executable. I've attached two repros (apologies for the convoluted C++ code, I tried to keep it simple) - one where the dependencies are shared libs, and one where the dependencies are static libs\r\n\r\n[Scenario 1](https://github.com/gradle/gradle/files/569697/StaticLibDependency.zip)\r\nLib1 and Lib2 are static libraries. Exe depends on Lib1, Lib1 depends on Lib2. linking fails with unresolved symbols from Lib2 when linking Exe\r\n\r\n[Scenario 2](https://github.com/gradle/gradle/files/569696/SharedLibDependency.zip)\r\nLib1 and Lib2 are shared libraries  (Note I am using MSVC so the C++ is set up to export symbols from a DLL, so the code may not compile on gcc/clang) Correctly compiles, however after executing InstallExe1, the install directory only contains Lib1.dll instead of Lib1 and Lib2.\r\n\r\n### Steps to Reproduce (for bugs)\r\nSee Current Behaviour, with full samples\r\n\r\n### Your Environment\r\nWindows 10\r\nGradle 3.1\r\nMSVC 2013, MSVC 2015\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gradle/gradle/issues/comments/258824162","html_url":"https://github.com/gradle/gradle/issues/801#issuecomment-258824162","issue_url":"https://api.github.com/repos/gradle/gradle/issues/801","id":258824162,"user":{"login":"lacasseio","id":22181740,"avatar_url":"https://avatars.githubusercontent.com/u/22181740?v=3","gravatar_id":"","url":"https://api.github.com/users/lacasseio","html_url":"https://github.com/lacasseio","followers_url":"https://api.github.com/users/lacasseio/followers","following_url":"https://api.github.com/users/lacasseio/following{/other_user}","gists_url":"https://api.github.com/users/lacasseio/gists{/gist_id}","starred_url":"https://api.github.com/users/lacasseio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacasseio/subscriptions","organizations_url":"https://api.github.com/users/lacasseio/orgs","repos_url":"https://api.github.com/users/lacasseio/repos","events_url":"https://api.github.com/users/lacasseio/events{/privacy}","received_events_url":"https://api.github.com/users/lacasseio/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T12:32:34Z","updated_at":"2016-11-07T12:32:34Z","body":"I will hijack this issue and convert it into an epic for better prioritization, rest assure @donalmacc no information will be lost."}}
{"actor":{"display_login":"lacasseio"}}