Skip to content

Commit

Permalink
[Wasm] Fix destinations in AbstractSetupTask to be non changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgonmic authored and qodana-bot committed Dec 12, 2024
1 parent 174174f commit 43b75c8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ abstract class AbstractSetupTask<Env : AbstractEnv, Spec : EnvSpec<Env>>(
@get:OutputDirectory
val destinationProvider: RegularFileProperty = project.objects.fileProperty()
.fileProvider(env.map { it.dir })
.also {
it.disallowChanges()
}

@Deprecated("Use destinationProvider instead. It uses Gradle Provider API.")
val destination: File
Expand All @@ -83,7 +86,9 @@ abstract class AbstractSetupTask<Env : AbstractEnv, Spec : EnvSpec<Env>>(
val file = it.asFile
file.parentFile.resolve("${file.name}.hash")
}
)
).also {
it.disallowChanges()
}

@Deprecated("Use destinationHashFileProvider instead. It uses Gradle Provider API.")
val destinationHashFile: File
Expand Down

0 comments on commit 43b75c8

Please sign in to comment.