If your pom for this dependency 'io.infinite:supplies:1.1.1' mentions a specific version of groovy, then I would expect the kinds of errors you are seeing if you are loading from a different version of Groovy. Either use the workarounds you mentioned on the gradle side - then you have an implicit assumption that the library will always be used from a groovy environment with the needed dependencies, or add a @GrabExclude of Groovy on the Groovy side alongside your '@Grab( 'io.infinite:supplies:1.1.1')'.
Cheers, Paul. On Mon, Mar 25, 2019 at 8:10 AM anton.pryamosta...@gmail.com < anton.pryamosta...@gmail.com> wrote: > Oh, I forgot to say: relevant thread on Gradle forum: > https://discuss.gradle.org/t/gradle-groovy-library-scope-documentation-best-practices-grapes/31054 > > It has some additional details (like workaround). Please kindly take a > look at that. > > Thank you. > > Bye (Anton) >