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

Fixes Gradle build error with Grace Views tasks #19

Closed
rainboyan opened this issue Oct 12, 2024 · 0 comments
Closed

Fixes Gradle build error with Grace Views tasks #19

rainboyan opened this issue Oct 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rainboyan
Copy link
Member

$ ./gradlew bootJar

> Task :resolveMainClassName FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':resolveMainClassName' (type 'ResolveMainClassName').
  - Gradle detected a problem with the following location: '/Users/grace/myapp/build/gson-classes/main'.

    Reason: Task ':resolveMainClassName' uses this output of task ':compileGsonViews' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':compileGsonViews' as an input of ':resolveMainClassName'.
      2. Declare an explicit dependency on ':compileGsonViews' from ':resolveMainClassName' using Task#dependsOn.
      3. Declare an explicit dependency on ':compileGsonViews' from ':resolveMainClassName' using Task#mustRunAfter.

    For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
@rainboyan rainboyan added the bug Something isn't working label Oct 12, 2024
@rainboyan rainboyan added this to the 6.1.0-M2 milestone Oct 12, 2024
@rainboyan rainboyan self-assigned this Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant