Skip to content

Commit

Permalink
[#221] Document workaround for Grapes bug on Groovy versions before 2…
Browse files Browse the repository at this point in the history
….4.7.

Closes #221
  • Loading branch information
remkop committed Oct 29, 2017
1 parent aff6e02 commit 5f8244a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## <a name="2.1.0-fixes"></a> Fixed issues

- [#220] Improve tracing for positional parameters (provide detail on current position).
- [#221] Document workaround for Grapes bug on Groovy versions before 2.4.7.

# <a name="2.0.1"></a> Picocli 2.0.1

Expand Down
10 changes: 10 additions & 0 deletions docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1899,6 +1899,16 @@ count.times {
assert this.commandLine.commandName == "myCommand"
----

CAUTION: When using a Groovy version older than 2.4.7, use this workaround for the https://issues.apache.org/jira/browse/GROOVY-7613[Grape bug] that causes this error:
`java.lang.ClassNotFoundException: # Licensed to the Apache Software Foundation (ASF) under one or more`.

[source,groovy]
----
@Grab('info.picocli:picocli:2.1.0-SNAPSHOT')
@GrabExclude('org.codehaus.groovy:groovy-all') // work around GROOVY-7613
...
----

=== Kotlin
Kotlin does not allow specifying an array https://kotlinlang.org/docs/reference/annotations.html[annotation]
attribute as a single value,
Expand Down

0 comments on commit 5f8244a

Please sign in to comment.