{"action":"created","issue":{"url":"https://api.github.com/repos/mkolisnyk/cucumber-reports/issues/79","repository_url":"https://api.github.com/repos/mkolisnyk/cucumber-reports","labels_url":"https://api.github.com/repos/mkolisnyk/cucumber-reports/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/mkolisnyk/cucumber-reports/issues/79/comments","events_url":"https://api.github.com/repos/mkolisnyk/cucumber-reports/issues/79/events","html_url":"https://github.com/mkolisnyk/cucumber-reports/issues/79","id":150360096,"number":79,"title":"Contains cucumber pico container as a dependency","user":{"login":"kezm","id":16239299,"avatar_url":"https://avatars.githubusercontent.com/u/16239299?v=3","gravatar_id":"","url":"https://api.github.com/users/kezm","html_url":"https://github.com/kezm","followers_url":"https://api.github.com/users/kezm/followers","following_url":"https://api.github.com/users/kezm/following{/other_user}","gists_url":"https://api.github.com/users/kezm/gists{/gist_id}","starred_url":"https://api.github.com/users/kezm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kezm/subscriptions","organizations_url":"https://api.github.com/users/kezm/orgs","repos_url":"https://api.github.com/users/kezm/repos","events_url":"https://api.github.com/users/kezm/events{/privacy}","received_events_url":"https://api.github.com/users/kezm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-22T12:46:24Z","updated_at":"2016-04-25T18:04:37Z","closed_at":"2016-04-25T18:04:37Z","body":"I have the cucumber reports included in my gradle build. When I then included cucumber-spring the cucumber tests wouldn't run and gives the following message:\r\n\r\nExpected only one instance, but found too many: [cucumber.runtime.java.spring.SpringFactory@5dfa4ce8, cucumber.runtime.java.picocontainer.PicoFactory@219a9d4f]\r\n    More than one Cucumber ObjectFactory was found in the classpath\r\n\r\n    You probably may have included, for instance, cucumber-spring AND cucumber-guice as part of\r\n    your dependencies. When this happens, Cucumber falls back to instantiating the\r\n    DefaultJavaObjectFactory implementation which doesn't provide IoC.\r\n    In order to enjoy IoC features, please remove the unnecessary dependencies from your classpath.\r\n\r\n    Running Feature child (scenario)...\r\n    Begin scenario run...\r\n\r\nThere is a workaround of doing:  \r\n\r\n    cucumberTestCompile (\"com.github.mkolisnyk:cucumber-reports:1.0.5\") {\r\n        exclude group:\"info.cukes\", module:\"cucumber-picocontainer\"\r\n    }\r\n\r\nit would be nice not to have to do this.\r\n"},"comment":{"url":"https://api.github.com/repos/mkolisnyk/cucumber-reports/issues/comments/214464729","html_url":"https://github.com/mkolisnyk/cucumber-reports/issues/79#issuecomment-214464729","issue_url":"https://api.github.com/repos/mkolisnyk/cucumber-reports/issues/79","id":214464729,"user":{"login":"mkolisnyk","id":2998127,"avatar_url":"https://avatars.githubusercontent.com/u/2998127?v=3","gravatar_id":"","url":"https://api.github.com/users/mkolisnyk","html_url":"https://github.com/mkolisnyk","followers_url":"https://api.github.com/users/mkolisnyk/followers","following_url":"https://api.github.com/users/mkolisnyk/following{/other_user}","gists_url":"https://api.github.com/users/mkolisnyk/gists{/gist_id}","starred_url":"https://api.github.com/users/mkolisnyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkolisnyk/subscriptions","organizations_url":"https://api.github.com/users/mkolisnyk/orgs","repos_url":"https://api.github.com/users/mkolisnyk/repos","events_url":"https://api.github.com/users/mkolisnyk/events{/privacy}","received_events_url":"https://api.github.com/users/mkolisnyk/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T18:04:37Z","updated_at":"2016-04-25T18:04:37Z","body":"Problem dependency was updated to have **test** scope and it shouldn't be downloaded if we include library. Changes will be published with 1.0.6 release"}}