We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
createNewFile()
toPath().create()
InitializeIntelliJPluginTask
1 parent 03c67c4 commit c8bb014Copy full SHA for c8bb014
src/main/kotlin/org/jetbrains/intellij/tasks/InitializeIntelliJPluginTask.kt
@@ -2,6 +2,7 @@
2
3
package org.jetbrains.intellij.tasks
4
5
+import com.jetbrains.plugin.structure.base.utils.create
6
import org.gradle.api.DefaultTask
7
import org.gradle.api.provider.Property
8
import org.gradle.api.tasks.Internal
@@ -59,7 +60,7 @@ abstract class InitializeIntelliJPluginTask : DefaultTask() {
59
60
warn(context, "$PLUGIN_NAME is outdated: $version. Update `$PLUGIN_ID` to: $latestVersion")
61
}
62
- lockFile.get().createNewFile()
63
+ lockFile.get().toPath().create()
64
} catch (e: Exception) {
65
error(context, e.message.orEmpty(), e)
66
0 commit comments