File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
kotlin-preprocessors/src/main/kotlin/com/utopiarise/kotlin/preprocessors/gradle Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,12 @@ open class GenerateDefinitions : DefaultTask() {
4444 @Input
4545 val definitionsObjectName = project.objects.property(String ::class .java)
4646
47+ private val buildDirProvider = project.layout.buildDirectory.asFile
48+
4749 @TaskAction
4850 fun execute () {
49- val output = project.buildDir.resolve(" definitions" )
51+ val buildDir = buildDirProvider.get()
52+ val output = buildDir.resolve(" definitions" )
5053 output.deleteRecursively()
5154
5255 output.generateDefinitions(definitions.get(), definitionsObjectName.getOrElse(DEFAULT_DEFINITION_CLASS ))
Original file line number Diff line number Diff line change 1+ org.gradle.configuration-cache =true
2+
13kotlin.code.style =official
You can’t perform that action at this time.
0 commit comments