{"action":"created","issue":{"url":"https://api.github.com/repos/nebula-plugins/gradle-lint-plugin/issues/47","repository_url":"https://api.github.com/repos/nebula-plugins/gradle-lint-plugin","labels_url":"https://api.github.com/repos/nebula-plugins/gradle-lint-plugin/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/nebula-plugins/gradle-lint-plugin/issues/47/comments","events_url":"https://api.github.com/repos/nebula-plugins/gradle-lint-plugin/issues/47/events","html_url":"https://github.com/nebula-plugins/gradle-lint-plugin/issues/47","id":170814577,"number":47,"title":"Wrong warnings from a dependency in different configurations","user":{"login":"krulls","id":866191,"avatar_url":"https://avatars.githubusercontent.com/u/866191?v=3","gravatar_id":"","url":"https://api.github.com/users/krulls","html_url":"https://github.com/krulls","followers_url":"https://api.github.com/users/krulls/followers","following_url":"https://api.github.com/users/krulls/following{/other_user}","gists_url":"https://api.github.com/users/krulls/gists{/gist_id}","starred_url":"https://api.github.com/users/krulls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krulls/subscriptions","organizations_url":"https://api.github.com/users/krulls/orgs","repos_url":"https://api.github.com/users/krulls/repos","events_url":"https://api.github.com/users/krulls/events{/privacy}","received_events_url":"https://api.github.com/users/krulls/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-12T07:32:49Z","updated_at":"2016-08-19T23:06:19Z","closed_at":"2016-08-19T17:52:01Z","body":"have an older project that is using log4j in runtime.\r\nthere are newer tests that are using slf4j-log4j which has log4j dependency.\r\n\r\nthe direct runtime dependency uses version 1.2.16\r\nthe transitive testRuntime dependency uses version 1.2.17\r\n\r\nthe linter shows the following warnings:\r\n````\r\nwarning   duplicate-dependency-class         log4j:log4j:1.2.16 in configuration 'compile' has 308 classes duplicated by log4j:log4j:1.2.17\r\n\r\nwarning   unused-dependency                  one or more classes in log4j:log4j:1.2.17 are required by your code directly\r\n\r\nwarning   unused-dependency                  this dependency is unused and can be removed\r\nbuild.gradle:32\r\ntestCompile 'org.slf4j:slf4j-log4j12:1.7.7'\r\n````\r\n\r\nattached you find a sample project.\r\n[linter.log4j.test.tar.gz](https://github.com/nebula-plugins/gradle-lint-plugin/files/414781/linter.log4j.test.tar.gz)\r\n\r\nrun with `./gradlew clean build`\r\n\r\nI would expect the linter to respect the dependency resolution of Gradle, which in this case is to use older version in \"runtime\" configuration and the newer version in \"testRuntime\" configuration. thus leading to no warnings at all.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nebula-plugins/gradle-lint-plugin/issues/comments/241156612","html_url":"https://github.com/nebula-plugins/gradle-lint-plugin/issues/47#issuecomment-241156612","issue_url":"https://api.github.com/repos/nebula-plugins/gradle-lint-plugin/issues/47","id":241156612,"user":{"login":"jkschneider","id":1697736,"avatar_url":"https://avatars.githubusercontent.com/u/1697736?v=3","gravatar_id":"","url":"https://api.github.com/users/jkschneider","html_url":"https://github.com/jkschneider","followers_url":"https://api.github.com/users/jkschneider/followers","following_url":"https://api.github.com/users/jkschneider/following{/other_user}","gists_url":"https://api.github.com/users/jkschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/jkschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkschneider/subscriptions","organizations_url":"https://api.github.com/users/jkschneider/orgs","repos_url":"https://api.github.com/users/jkschneider/repos","events_url":"https://api.github.com/users/jkschneider/events{/privacy}","received_events_url":"https://api.github.com/users/jkschneider/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T23:06:19Z","updated_at":"2016-08-19T23:06:19Z","body":"@krulls Thanks a bunch for the report. This case hadn't even occurred to me, but will be fixed with the upcoming 5.0.1 release!"}}
{"actor":{"display_login":"jkschneider"}}