{"action":"created","issue":{"url":"https://api.github.com/repos/jayway/powermock/issues/14","labels_url":"https://api.github.com/repos/jayway/powermock/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/jayway/powermock/issues/14/comments","events_url":"https://api.github.com/repos/jayway/powermock/issues/14/events","html_url":"https://github.com/jayway/powermock/pull/14","id":54825708,"number":14,"title":"use mockito-core instead of mockito-all","user":{"login":"darxriggs","id":16874,"avatar_url":"https://avatars.githubusercontent.com/u/16874?v=3","gravatar_id":"","url":"https://api.github.com/users/darxriggs","html_url":"https://github.com/darxriggs","followers_url":"https://api.github.com/users/darxriggs/followers","following_url":"https://api.github.com/users/darxriggs/following{/other_user}","gists_url":"https://api.github.com/users/darxriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/darxriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darxriggs/subscriptions","organizations_url":"https://api.github.com/users/darxriggs/orgs","repos_url":"https://api.github.com/users/darxriggs/repos","events_url":"https://api.github.com/users/darxriggs/events{/privacy}","received_events_url":"https://api.github.com/users/darxriggs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T23:36:24Z","updated_at":"2015-01-20T17:49:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jayway/powermock/pulls/14","html_url":"https://github.com/jayway/powermock/pull/14","diff_url":"https://github.com/jayway/powermock/pull/14.diff","patch_url":"https://github.com/jayway/powermock/pull/14.patch"},"body":"* why?\r\n  * see https://github.com/mockito/mockito/wiki/Declaring-mockito-dependency\r\n  * mockito-all is messy as it contains the Hamcrest 1.1 and Objenesis 2.1 classes\r\n  * mockito-core is cleaner as it declares these as dependencies\r\n* this change makes it much easier to use JUnit + Mockito + Powermock + Hamcrest\r\n  * in the past the order in which the dependencies were declared was relevant\r\n    (respectively the resulting order in the classpath)\r\n  * now Hamcrest 1.3 instead of 1.1 can be used irrespective of the dependency order\r\n* api/mockito requires Hamcrest to compile some classes in src/main,\r\n  so Hamcrest has to be defined with scope 'compile' (mockito-core specifies 'runtime' only)\r\n* using Hamcrest 1.1 as dependency for the Mockito API as Mockito uses this version\r\n* using Hamcrest 1.3 as dependency for the tests as they use some features from this version"},"comment":{"url":"https://api.github.com/repos/jayway/powermock/issues/comments/70698728","html_url":"https://github.com/jayway/powermock/pull/14#issuecomment-70698728","issue_url":"https://api.github.com/repos/jayway/powermock/issues/14","id":70698728,"user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T17:49:16Z","updated_at":"2015-01-20T17:49:16Z","body":"Thanks. Just a question. Will the users have to declare a Hamcrest or Objenesis dependency explicitly in their pom if using PowerMock after this change?"}}