You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by "andrewcanby-finocomp (via GitHub)" <gi...@apache.org> on 2025/04/15 16:18:06 UTC

[I] FindMainClassTask - task does not declare outputs [grails-core]

andrewcanby-finocomp opened a new issue, #14148:
URL: https://github.com/apache/grails-core/issues/14148

   ### 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
       ```sh
       ./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
      ```sh
       ./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
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org