[ 
https://issues.apache.org/jira/browse/GROOVY-9929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan Tandy updated GROOVY-9929:
-------------------------------
    Summary: @CompileStatic failure with commons-cli not in compile scope  
(was: Compile failure with @CompileStatic and groovy.cli.commons.CliBuilder)

> @CompileStatic failure with commons-cli not in compile scope
> ------------------------------------------------------------
>
>                 Key: GROOVY-9929
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9929
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 3.0.7
>            Reporter: Ryan Tandy
>            Priority: Minor
>         Attachments: example.tgz
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to