Skip to content

Dependency Management

Philip Ford edited this page Apr 23, 2017 · 5 revisions

Groovy Grapes

Grape is a JAR dependency manager embedded into Groovy. Grape lets you quickly add maven repository dependencies to your classpath, making scripting even easier. The simplest use is as simple as adding an annotation to your script:

@Grab(group='org.springframework', module='spring-orm', version='3.2.5.RELEASE')
import org.springframework.jdbc.core.JdbcTemplate
  • Built in to Groovy
  • Uses annotations to add a dependency to the classpath quickly.

References

Clone this wiki locally