targetOutputDir

@get:Internal
abstract val targetOutputDir: DirectoryProperty

Deprecated

Use targetRootOutputDir instead. There is also a new default for the `generateLexer` task which should be sufficient for most use cases.When using the new property, the generated class file is deleted by default if `pathToClass` is set, and the Java file is created in a subdirectory matching the package of the file. You can restore the previous behavior by adding `purgeOldFiles = false` and `packageName = ""`.

Replace with

targetRootOutputDir

The output directory for the generated lexer. The Java file is created directly below the given directory. The value of packageName is ignored. Stale files in the given directory are not deleted during task execution, unless purgeOldFiles is explicitly set to true.