diff --git a/sekret-gradle-plugin/src/main/java/dev/datlag/sekret/gradle/tasks/CopySekretNativeBinaryTask.kt b/sekret-gradle-plugin/src/main/java/dev/datlag/sekret/gradle/tasks/CopySekretNativeBinaryTask.kt index e1201ba..9534663 100644 --- a/sekret-gradle-plugin/src/main/java/dev/datlag/sekret/gradle/tasks/CopySekretNativeBinaryTask.kt +++ b/sekret-gradle-plugin/src/main/java/dev/datlag/sekret/gradle/tasks/CopySekretNativeBinaryTask.kt @@ -131,8 +131,8 @@ abstract class CopySekretNativeBinaryTask : DefaultTask() { private fun copyFileFromTo(from: String, dest: File) { fileSystem.copy { - from(File(from)) - into(dest.mkdirsSafely()) + from(from) + into(dest.also { it.mkdirsSafely() }) exclude("**/*.h", "**/*.def") } }