Skip to content

Commit 9c6280c

Browse files
vRallevvanniktech
authored andcommitted
Remove deprecated method calls (#94)
1 parent 2d0aa5b commit 9c6280c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/groovy/com/vanniktech/android/junit/jacoco/GenerationPlugin.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ class GenerationPlugin implements Plugin<Project> {
145145
reports {
146146
xml {
147147
enabled = true
148-
destination "${subProject.buildDir}/reports/jacoco/${sourceName}/jacoco.xml"
148+
destination subProject.file("${subProject.buildDir}/reports/jacoco/${sourceName}/jacoco.xml")
149149
}
150150
html {
151151
enabled = true
152-
destination "${subProject.buildDir}/reports/jacoco/${sourceName}"
152+
destination subProject.file("${subProject.buildDir}/reports/jacoco/${sourceName}")
153153
}
154154
}
155155

@@ -234,11 +234,11 @@ class GenerationPlugin implements Plugin<Project> {
234234
reports {
235235
xml {
236236
enabled = true
237-
destination "${project.buildDir}/reports/jacoco/jacoco.xml"
237+
destination project.file("${project.buildDir}/reports/jacoco/jacoco.xml")
238238
}
239239
html {
240240
enabled = true
241-
destination "${project.buildDir}/reports/jacoco"
241+
destination project.file("${project.buildDir}/reports/jacoco")
242242
}
243243
}
244244

0 commit comments

Comments
 (0)