Task 'cobertura' not found in root project

Hi

I’m using Gradle 2.4, and trying to use cobertura plugin.
I have a multi project build. So the parent gradle.build looks like this:

plugins {
	id 'net.saliman.cobertura' version '2.2.7'
}

repositories {
    mavenLocal()
    mavenCentral()
}

ext {
    springVersion = "4.1.6.RELEASE"
    spring_batch_version = "3.0.5.RELEASE"
    spring_security_version = "4.0.1.RELEASE"
    ....
}


subprojects {
    apply plugin: 'java'
    apply plugin: 'eclipse'
    apply plugin: 'cobertura'
....

when I run it on my machine, everything works smoothly.
gradle clean build as well as gradle cobertura.
But when I try it on our jenkins machine (unix), gradle clean build works, but gradle cobertura gives an error:

  • gradle cobertura
    FAILURE: Build failed with an exception.
  • What went wrong:
    Task ‘cobertura’ not found in root project ‘…’.
  • Try:
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

What am I missing?

Thanks!
Ohad