Skip to content

Instantly share code, notes, and snippets.

@aya-eiya
Created October 31, 2013 11:54
Show Gist options
  • Save aya-eiya/7248474 to your computer and use it in GitHub Desktop.
Save aya-eiya/7248474 to your computer and use it in GitHub Desktop.
GradleのCoveturaPlugin設定 ref: http://qiita.com/aya_eiya/items/168d9ef0e9eeeeaad66b
apply plugin: 'java'
apply plugin: 'groovy'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "net.saliman:gradle-cobertura-plugin:2.0.0"
}
buildDir = 'target'
}
apply plugin: 'cobertura'
group = 'org.me'
version = '0.1'
sourceCompatibility = 1.7
targetCompatibility = 1.7
def isOnJenkins = System.properties.containsKey('jenkins')
cobertura.coverageFormats = (isOnJenkins)?['xml']:['html']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment