Skip to content

@Grab annotation support in Groovy interpreter #7412

@nroslavker-schon

Description

@nroslavker-schon

Please add Grab annotation support in the groovy interpreter which would allow adding maven dependencies inline in groovy scripts. For example:
`@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.2')
import groovyx.net.http.RESTClient

println("About to create RESTClient.");
def service = new RESTClient("http://example.com/")
def response = service.get(path: "/some/resource")
println("Response status: " + response.status)`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions