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

Grails 5.0.2 projects are never up to date as findMainClass does not declare outputs #61

Open
andrewcanby-finocomp opened this issue Dec 13, 2021 · 0 comments

Comments

@andrewcanby-finocomp
Copy link

andrewcanby-finocomp commented Dec 13, 2021

Steps to Reproduce

  1. Create a vanilla Grails 5.0.2 project
    • NOTE: MUST fix the gson-views dependency to 2.1.1
  2. Build the project
    ./gradlew build --info
    # snip
    BUILD SUCCESSFUL in 1m 56s
    11 actionable tasks: 10 executed, 1 up-to-date
  3. Rebuild the project without making any changes
     ./gradlew build --info
     # snip
     > Task :findMainClass
     Caching disabled for task ':findMainClass' because:
       Build cache is disabled
     Task ':findMainClass' is not up-to-date because:
       Task has not declared any outputs despite executing actions.
     :findMainClass (Thread[Execution worker for ':',5,main]) completed. Took 0.001 secs.
     # snip
     BUILD SUCCESSFUL in 42s
     10 actionable tasks: 1 executed, 9 up-to-date

Expected Behaviour

Gradle up-to-date checks should identify that there have been no changes and the project should not need rebuilding

Actual Behaviour

Gradle is identifying that :findMainClass is never up to date, and always rebuilds it and it's dependents:

> Task :findMainClass
Caching disabled for task ':findMainClass' because:
  Build cache is disabled
Task ':findMainClass' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:findMainClass (Thread[Execution worker for ':',5,main]) completed. Took 0.001 secs.

Environment Information

  • Operating System: Mac OS 11
  • Grails Version: 5.0.2
  • JDK Version: 11.0.8
  • Container Version (If Applicable): N/A

Example Application

  • Use any vanilla Grails 5.0.2 application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant