Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3174

Gradle task groovyDoc failing with NoClassDefFoundError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.14-rc-4

      Description

      I was originally using Gradle 1.5 to test my Groovy scripts but also tried this with Gradle 1.9 and experienced the same problem. The groovyDoc task in build.gradle is set up like:

      groovydoc {
      docTitle = "Name"
      windowTitle = "Name"
      destinationDir = file('file://path')
      }

      The error I'm getting when running this task is:

      FAILURE: Build failed with an exception.

      • What went wrong:
        Execution failed for task ':groovydoc'.
        > java.lang.NoClassDefFoundError: org/fusesource/jansi/AnsiRenderWriter

      This only started happening after I made a minor code change (adding a single If statement) to one of my classes. I reverted to the previous commit and it does not have this problem. I tried deleting my change in the class and recommitting the same file but it is still failing.

      You can see the full stacktrace here: [1]http://pastebin.com/1infzqtY
      ----------------------------------------------------------------------------------------
      [1] http://pastebin.com/1infzqtY

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wolf Stefan Wolf
              Reporter:
              forums Gradle Forums
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: