Created
March 14, 2013 14:46
-
-
Save kaikousa/5161915 to your computer and use it in GitHub Desktop.
A Gradle script for running a Groovy-script that has dependencies (Jedis used for example).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'groovy' | |
buildscript { | |
repositories { mavenCentral() } | |
dependencies { | |
classpath "redis.clients:jedis:2.0.0" | |
} | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
groovy "org.codehaus.groovy:groovy-all:2.0.5" | |
compile 'org.codehaus.groovy:groovy-all:2.0.5' | |
compile "redis.clients:jedis:2.0.0" | |
} | |
task run << { | |
new GroovyShell(buildscript.classLoader).run(file('src/main/groovy/TestRedis.groovy')) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment