Created
October 31, 2013 11:54
-
-
Save aya-eiya/7248474 to your computer and use it in GitHub Desktop.
GradleのCoveturaPlugin設定 ref: http://qiita.com/aya_eiya/items/168d9ef0e9eeeeaad66b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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