JLLeitschuh / ktlint-gradle

A ktlint gradle plugin
MIT License
1.48k stars 163 forks source link

CodeQL Action is Failing #797

Open JLLeitschuh opened 2 weeks ago

JLLeitschuh commented 2 weeks ago

We're having a build failure regularly in the samples project:

  [2024-11-07 17:57:01] [autobuild] FAILURE: Build failed with an exception.
  [2024-11-07 17:57:01] [autobuild] * What went wrong:
  [2024-11-07 17:57:01] [autobuild] Could not determine the dependencies of task ':samples:android-app:compileKellerbierDebugJavaWithJavac'.
  [2024-11-07 17:57:01] [autobuild] > Could not create task ':samples:android-app:dataBindingGenBaseClassesKellerbierDebug'.
  [2024-11-07 17:57:01] [autobuild]    > Cannot use @TaskAction annotation on method DataBindingGenBaseClassesTask.writeBaseClasses() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

https://github.com/JLLeitschuh/ktlint-gradle/actions/runs/11728536931/job/32672171619#step:4:224

Do we need to update a library to fix this?

Seeing this issue on SO that looks similar?

https://stackoverflow.com/questions/74025711/could-not-create-task-appcompiledebugkotlin-could-not-create-task-app