targetFile

fun targetFile(lexerClass: String): Provider<RegularFile>

Deprecated

You may specify the expected output directory relative to targetRootOutputDir instead.

Replace with

targetRootOutputDir.file(/* add package if necessary */ "${lexerClass}.java")

The location of the lexer class computed from the targetOutputDir. Because the lexer class is defined in the flex file, it needs to be passed here too.


fun targetFile(lexerClass: Provider<String>): Provider<RegularFile>

Deprecated

You may specify the expected output directory relative to targetRootOutputDir instead.

Replace with

targetRootOutputDir.file(lexerClass.map { /* add package if necessary */ "${it}.java"})

The location of the lexer class computed from the targetOutputDir. Because the lexer class is defined in the flex file, it needs to be passed here too.