focus
focus copied to clipboard
Gradle 8.0 - clearFocus - ClearFocusTask error
After updating to Gradle 8.0 we have the following error :
A problem was found with the configuration of task ':clearFocus' (type 'ClearFocusTask').
- Type 'com.dropbox.focus.ClearFocusTask' property 'focusFile' has @Input annotation used on property of type 'RegularFileProperty'.
Reason: A property of type 'RegularFileProperty' annotated with @Input cannot determine how to interpret the file.
Possible solutions:
1. Annotate with @InputFile for regular files.
2. Annotate with @InputFiles for collections of files.
3. If you want to track the path, return File.absolutePath as a String and keep @Input.
Please refer to https://docs.gradle.org/8.0.2/userguide/validation_problems.html#incorrect_use_of_input_annotation for more details about this problem.
To reproduce you can update this project to Gradle 8.0.2 and run ./gradlew clearFocus: build scan.
AGP 7.4.2 Gradle 8.0.2