About
Language - (Import|Include|Require) in Groovy
Automatic
All these packages and classes are imported by default, i.e. you do not have to use an explicit import statement to use them:
- java.io.*
- java.lang.*
- java.math.BigDecimal
- java.math.BigInteger
- java.net.*
- java.util.*
- groovy.lang.*
- groovy.util.*
Manual
With Groovy - Grape Dependency Manager
// Qualified notation
@Grab(group='org.springframework', module='spring-orm', version='3.2.5.RELEASE')
import org.springframework.jdbc.core.JdbcTemplate
// Shorthand notation
@Grab('org.springframework:spring-orm:3.2.5.RELEASE')
import org.springframework.jdbc.core.JdbcTemplate