Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9929

@CompileStatic failure with commons-cli not in compile scope

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.7
    • None
    • None
    • None

    Description

      The groovy-cli-commons POM declares a dependency on commons-cli with runtime scope. This seems to be a problem for a static compiled class that uses CliBuilder. An example Maven project is attached, but basically, when the class does new CliBuilder() inside a @CompileStatic method, then the compilation fails with NoClassDefFoundError if commons-cli is not on the compile classpath.

      Attachments

        1. example.tgz
          0.7 kB
          Ryan Tandy

        Activity

          People

            Unassigned Unassigned
            rtandy Ryan Tandy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: