Closed pavikaa closed 3 months ago
Are you using Java 8? Can you try different versions of Java (like 11 and 17)?
Hey, thanks for your fast response. I'm using Java 17, I tried with 11 and 20 but that didn't help. The project builds fine and other tasks execute with no problem, only the one I created manually fails. Switching back to 0.18.0 works normally with Java 17
Does it make sense to change the structure of the plugin to be more independent of Ktfmt itself?
I know ktfmt publishes a jar with all dependencies bundled. Could it be possible to start the formatter via the command line?
Edit: I am not sure if that is the root cause of this problem and of course this has some impact on the plugin api.
I will close this issue because I replaced the use of a custom task with the ktfmtFormat
task. I already run ktfmt on all project files, so the custom task is unnecessary for me.
๐ Describe the bug
After updating to version 0.19.0 my custom pre-commit task fails. Plugin generated tasks
ktftmFormat
etc. work normally.โ ๏ธ Current behavior
This is my custom task:
After updating to version 0.19.0 I get the following error:
On the previous version (0.18.0) everything works as expected.