Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] is the fluid plugin not support for gradle 7? #653

Open
xhaimxd opened this issue Apr 27, 2022 · 3 comments
Open

[Question] is the fluid plugin not support for gradle 7? #653

xhaimxd opened this issue Apr 27, 2022 · 3 comments
Labels

Comments

@xhaimxd
Copy link

xhaimxd commented Apr 27, 2022

I just startup a project in jdk 17 and gradle 7.3.3.
when i tried to compile project, it shows:

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':core:fluid' (type 'FluidApiGenerationTask').
  - In plugin 'artemis-fluid' type 'net.onedaybeard.gradle.FluidApiGenerationTask' field 'preferences' without corresponding getter has been annotated with @Input.
    
    Reason: Annotations on fields are only used if there's a corresponding getter for the field.
    
    Possible solutions:
      1. Add a getter for field 'preferences'.
      2. Remove the annotations on 'preferences'.
    
    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
  - In plugin 'artemis-fluid' type 'net.onedaybeard.gradle.FluidApiGenerationTask' property 'classpath' has @Input annotation used on property of type 'FileCollection'.
    
    Reason: A property of type 'FileCollection' annotated with @Input cannot determine how to interpret the file.
    
    Possible solutions:
      1. Annotate with @InputFile for regular files.
      2. Annotate with @InputDirectory for directories.
      3. If you want to track the path, return File.absolutePath as a String and keep @Input.
    
    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#incorrect_use_of_input_annotation for more details about this problem.
  - In plugin 'artemis-fluid' type 'net.onedaybeard.gradle.FluidApiGenerationTask' property 'generatedSourcesDirectory' has @Input annotation used on property of type 'File'.
    
    Reason: A property of type 'File' annotated with @Input cannot determine how to interpret the file.
    
    Possible solutions:
      1. Annotate with @InputFile for regular files.
      2. Annotate with @InputDirectory for directories.
      3. If you want to track the path, return File.absolutePath as a String and keep @Input.
    
    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#incorrect_use_of_input_annotation for more details about this problem.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 111ms

i found some games on github and try to compile them, all works. but those gradle version are low. just want to know it is my fault or it not support for gradle 7?

@xhaimxd
Copy link
Author

xhaimxd commented Apr 28, 2022

update:
I had copied the plugin's source code, and modified code from @input to @OutputDirectory and @InputFiles on generatedDirectory and classpath. it worked but, it throwed some ClassNotFoundException like JsonSerializer or ServletContext. I found it scanned all dependencies which i implemented. How to solved it?

@aluminais
Copy link

I have the same problem

@ChinQingl
Copy link

update: I had copied the plugin's source code, and modified code from @input to @OutputDirectory and @InputFiles on generatedDirectory and classpath. it worked but, it throwed some ClassNotFoundException like JsonSerializer or ServletContext. I found it scanned all dependencies which i implemented. How to solved it?

I was able to run this project using gralde6.9.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants