Skip to content

Commit

Permalink
icerockdev#207 removed use of project in task
Browse files Browse the repository at this point in the history
  • Loading branch information
ExNDY committed Feb 21, 2024
1 parent b980c73 commit f92026f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package dev.icerock.moko.network.tasks
import dev.icerock.moko.network.KtorCodegen
import dev.icerock.moko.network.SpecInfo
import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
import java.io.File

open class GenerateTask : GenerateTask() {
init {
Expand All @@ -33,9 +34,7 @@ open class GenerateTask : GenerateTask() {

doFirst {
// clean directory before generate new code
val cleanupDir = outputDir.get()
val dir = project.file(cleanupDir)
dir.deleteRecursively()
File(outputDir.get()).deleteRecursively()
}
}
}

0 comments on commit f92026f

Please sign in to comment.