Permalink
Browse files

fixed the warnings when upgraded to gradle milestone 9.

upgraded to version 1.0.1
using project extention property
updated the reporting dir path
  • Loading branch information...
1 parent 8487490 commit b23b1514d77c8bbcfb98de220b3463b706f90285 @sragu sragu committed Mar 26, 2012
View
@@ -3,7 +3,7 @@ apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'maven'
-version='1.0'
+version='1.0.1'
group = 'gradle_cobertura'
configurations {
@@ -56,7 +56,7 @@ class CoberturaConvention {
this.project = project
coverageDirs = [ project.sourceSets.main.output.classesDir.path ]
coverageDatafile = new File("${project.buildDir.path}/cobertura", 'cobertura.ser')
- coverageReportDir = new File("${project.reportsDir.path}/cobertura")
+ coverageReportDir = new File("${project.reporting.baseDir.path}/cobertura")
coverageSourceDirs = project.sourceSets.main.java.srcDirs
}
@@ -21,7 +21,7 @@ class CoberturaPlugin implements Plugin<Project> {
def void apply(Project project) {
this.project = project
project.apply plugin: 'java'
- project.coberturaRunner = new CoberturaRunner()
+ project.extensions.coberturaRunner = new CoberturaRunner()
project.convention.plugins.cobertura = new CoberturaConvention(project);
if (!project.configurations.asMap['cobertura']) {

0 comments on commit b23b151

Please sign in to comment.