Tapestry 5
  1. Tapestry 5
  2. TAP5-1671

Running "gradle idea" fails on a clean checkout

    Details

      Description

      This have been mentioned on the mailing list before. Steps to reproduce:
      1) Perform a clean checkout of trunk
      2) Issue "gradle idea"
      3) The build fails with some error about "could not invoke minus on null"

      A work around is to do "gradle build" before attempting to generate the idea project.

        Activity

        Hide
        Chris Poulsen added a comment -

        I don't know much about gradle/groovy.

        So I've just wrapped the offending line in a try/catch and default it to an empty set if an exception is thrown.

        If the task is truly dependent on some generated folders being present I guess we should make sure that the build task is marked as a dependency of the idea task.

        Show
        Chris Poulsen added a comment - I don't know much about gradle/groovy. So I've just wrapped the offending line in a try/catch and default it to an empty set if an exception is thrown. If the task is truly dependent on some generated folders being present I guess we should make sure that the build task is marked as a dependency of the idea task.
        Hide
        Massimo Lusetti added a comment -

        Have you tried to use the gradle wrapper from the source tree?

        Show
        Massimo Lusetti added a comment - Have you tried to use the gradle wrapper from the source tree?
        Hide
        Chris Poulsen added a comment -

        Yes, if you mean using "gradlew idea".

        C:\code\framework\tap5-clean>svn status

        C:\code\framework\tap5-clean>gradlew.bat idea
        :ideaModule
        :ideaProject
        :ideaWorkspace
        :idea
        :plastic:ideaModule
        :plastic:idea
        :quickstart:ideaModule
        :quickstart:idea
        :tapestry-beanvalidator:ideaModule
        :tapestry-beanvalidator:idea
        :tapestry-core:ideaModule

        FAILURE: Build failed with an exception.

        • Where:
          Build file 'C:\code\framework\tap5-clean\tapestry-core\build.gradle' line: 56
        • What went wrong:
          Execution failed for task ':tapestry-core:ideaModule'.
          Cause: Cannot invoke method minus() on null object
        • Try:
          Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

        BUILD FAILED

        Total time: 12.104 secs

        C:\code\framework\tap5-clean>

        Show
        Chris Poulsen added a comment - Yes, if you mean using "gradlew idea". C:\code\framework\tap5-clean>svn status C:\code\framework\tap5-clean>gradlew.bat idea :ideaModule :ideaProject :ideaWorkspace :idea :plastic:ideaModule :plastic:idea :quickstart:ideaModule :quickstart:idea :tapestry-beanvalidator:ideaModule :tapestry-beanvalidator:idea :tapestry-core:ideaModule FAILURE: Build failed with an exception. Where: Build file 'C:\code\framework\tap5-clean\tapestry-core\build.gradle' line: 56 What went wrong: Execution failed for task ':tapestry-core:ideaModule'. Cause: Cannot invoke method minus() on null object Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 12.104 secs C:\code\framework\tap5-clean>
        Hide
        Massimo Lusetti added a comment -

        Will look into this later today

        Show
        Massimo Lusetti added a comment - Will look into this later today
        Hide
        Hudson added a comment -

        Integrated in tapestry-trunk-freestyle #554 (See https://builds.apache.org/job/tapestry-trunk-freestyle/554/)
        TAP5-1671 Execute the grammarSourceGenerate tasks to have the generated source available to idea plugin

        mlusetti : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1177349
        Files :

        • /tapestry/tapestry5/trunk/tapestry-core/build.gradle
        Show
        Hudson added a comment - Integrated in tapestry-trunk-freestyle #554 (See https://builds.apache.org/job/tapestry-trunk-freestyle/554/ ) TAP5-1671 Execute the grammarSourceGenerate tasks to have the generated source available to idea plugin mlusetti : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1177349 Files : /tapestry/tapestry5/trunk/tapestry-core/build.gradle

          People

          • Assignee:
            Massimo Lusetti
            Reporter:
            Chris Poulsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development