Groovy source code dependency manager. Similar to @grab annotation for grapes, it provides a @SourceGrab annotation that allows using Groovy source code automatically downloaded and updated from Git.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main
.gitignore
LICENSE
README.md
pom.xml

README.md

sourcegrape

Groovy source code dependency manager. Similar to @Grab annotation for grapes, it provides a @SourceGrab annotation that uses source code automatically downloaded and updated from Git.

Example of use:

// Load SourceGrape artifact from the Maven repo
@Grab('com.sourcegrape:sourcegrape')
import com.sourcegrape.*

// Load the sample source, including the dummy TestClass class
@SourceGrab('https://github.com/andresviedma/groovy-assets-directory-example.git')

// Is TestClass there?
TestClass test = new TestClass()
test.helloWorld()