You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Option 'inputFile' cannot be cast to type 'java.io.File' in class 'com.yelp.codegen.plugin.GenerateTask'.
I tried many different options of specifying the inputFile parameter, without any success.
After playing around with some custom task and @InputFile / @Option myself, it seems like it would only work if the type is a String (and not a RegularFileProperty). This would be in line with what the Gradle documentation about Option is saying:
I'm trying to specify the
inputFile
via command line options, as described inside the readme:but this fails with
I tried many different options of specifying the
inputFile
parameter, without any success.After playing around with some custom task and
@InputFile
/@Option
myself, it seems like it would only work if the type is aString
(and not aRegularFileProperty
). This would be in line with what the Gradle documentation aboutOption
is saying:https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/options/Option.html
I didn't try any other properties, but maybe
outputDir
could also make problems, as it's aDirectoryProperty
.Plugin version: 1.4.1
The text was updated successfully, but these errors were encountered: