Slackbot
04/25/2022, 3:41 PMno
04/25/2022, 3:57 PMArlind Hajredinaj
04/25/2022, 3:59 PMArlind Hajredinaj
04/25/2022, 4:00 PM@get:OutputFile
internal val versionCodesFile: RegularFileProperty = objectFactory.fileProperty().convention(
projectLayout.buildDirectory.file("some-file.json")
)
no
04/25/2022, 4:05 PMCaused by: java.lang.ClassCastException: class java.io.File cannot be cast to class java.lang.String (java.io.File and java.lang.String are in module java.base of loader 'bootstrap').
Can you send a build scan over? How do you know that the error is occurring on the line htat you think it is?Riccardo Ciovati
04/25/2022, 4:07 PMno
04/25/2022, 4:31 PMRiccardo Ciovati
04/26/2022, 7:14 AM@get:Input
abstract val serviceAccount: RegularFileProperty
works as long as you don't have also a @OutputFile
. At that point the input has to be a @InputFile
instead of @Input
🤷