Dear Jmix team,
I’m trying to do ./gradlew bootBuildImage but unfortunattely build fails with the @Input annotation error. See below. Problem can be reproduced on new blank Jmix 1.6 project.
Could you please give me some advice?
Thank you.
OG
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':bootBuildImage' (type 'BootBuildImage').
- In plugin 'org.springframework.boot' type 'org.springframework.boot.gradle.tasks.bundling.BootBuildImage' property 'archiveFile' 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.