Is it possible to use @Grab inside a Gradle build.gradle file?
My understanding is that Gradle build scripts are written in Groovy and Grape/@Grab is built into Groovy.
But if i attempt to add a @Grab annotation into a build.gradle file it doesn't work.
e.g. adding:
@Grab(group='org.springframework', module='spring-orm', version='3.2.5.RELEASE')
import org.springframework.jdbc.core.JdbcTemplate
it gives me the error
org.gradle.groovy.scripts.ScriptCompilationException: Could not compile build file.
Is this possible?