{"action":"created","issue":{"url":"https://api.github.com/repos/stevesaliman/gradle-cobertura-plugin/issues/70","labels_url":"https://api.github.com/repos/stevesaliman/gradle-cobertura-plugin/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/stevesaliman/gradle-cobertura-plugin/issues/70/comments","events_url":"https://api.github.com/repos/stevesaliman/gradle-cobertura-plugin/issues/70/events","html_url":"https://github.com/stevesaliman/gradle-cobertura-plugin/issues/70","id":57708013,"number":70,"title":"coberturaCheck always fails for coberturaVersion 2.1.0-SNAPSHOT","user":{"login":"owahlen","id":955263,"avatar_url":"https://avatars.githubusercontent.com/u/955263?v=3","gravatar_id":"","url":"https://api.github.com/users/owahlen","html_url":"https://github.com/owahlen","followers_url":"https://api.github.com/users/owahlen/followers","following_url":"https://api.github.com/users/owahlen/following{/other_user}","gists_url":"https://api.github.com/users/owahlen/gists{/gist_id}","starred_url":"https://api.github.com/users/owahlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owahlen/subscriptions","organizations_url":"https://api.github.com/users/owahlen/orgs","repos_url":"https://api.github.com/users/owahlen/repos","events_url":"https://api.github.com/users/owahlen/events{/privacy}","received_events_url":"https://api.github.com/users/owahlen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-14T21:56:23Z","updated_at":"2015-03-03T04:10:31Z","closed_at":"2015-03-03T04:10:31Z","body":"**Error Description**\r\nI need cobertura 2.1.0-SNAPSHOT for Java 8 support. In our project we have coverage levels set to 50% and the CI server shall fail if these coverage levels are not met. Unfortunately the coverageCheck *always* fails even though all coverage levels seem to be met.\r\n\r\n**Error Analysis**\r\nBy looking at the plugin code in CoberturaRunner:163 the call to *executeCobertura* is different for cobertura versions greater than 2.1.0. More specifically the third parameter in this line indicates to not use the SecurityManager.\r\nThis in turn _always_ leads to the exitStatus of -1 in CoberturaRunner:237.\r\nAnd this in turn makes the coverage checks always fail in PerformCoverageCheckTask:35.\r\n\r\n**Possible Solution**\r\nI do not know if the Security Manager is switched off for a specific reason. If not then the third parameter in CoberturaRunner:237 should be _true_ instead of _false_. On the other hand I think it does not make much sense to always return an error code if the security manager is switched of!?\r\n"},"comment":{"url":"https://api.github.com/repos/stevesaliman/gradle-cobertura-plugin/issues/comments/76884048","html_url":"https://github.com/stevesaliman/gradle-cobertura-plugin/issues/70#issuecomment-76884048","issue_url":"https://api.github.com/repos/stevesaliman/gradle-cobertura-plugin/issues/70","id":76884048,"user":{"login":"stevesaliman","id":1919803,"avatar_url":"https://avatars.githubusercontent.com/u/1919803?v=3","gravatar_id":"","url":"https://api.github.com/users/stevesaliman","html_url":"https://github.com/stevesaliman","followers_url":"https://api.github.com/users/stevesaliman/followers","following_url":"https://api.github.com/users/stevesaliman/following{/other_user}","gists_url":"https://api.github.com/users/stevesaliman/gists{/gist_id}","starred_url":"https://api.github.com/users/stevesaliman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevesaliman/subscriptions","organizations_url":"https://api.github.com/users/stevesaliman/orgs","repos_url":"https://api.github.com/users/stevesaliman/repos","events_url":"https://api.github.com/users/stevesaliman/events{/privacy}","received_events_url":"https://api.github.com/users/stevesaliman/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T04:10:31Z","updated_at":"2015-03-03T04:10:31Z","body":"I've just released version 2.2.7 of the plugin which uses Cobertura 2.1.1 by default, and includes the fix from Pull request #71. It should be showing up on Maven Central and the Gradle Plugin Page in the next few hours."}}