Skip to content

Instantly share code, notes, and snippets.

@sourcerebels
Created June 7, 2011 05:52
Show Gist options
  • Save sourcerebels/1011752 to your computer and use it in GitHub Desktop.
Save sourcerebels/1011752 to your computer and use it in GitHub Desktop.
Simple Gradle script for building a Groovy project with JUnit 4.8.2
apply plugin: 'groovy'
repositories {
mavenCentral()
}
dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.10'
testCompile group: 'junit', name: 'junit', version: '4.8.2'
}
[edu@somachigun tinspect]$ gradle jar
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
BUILD SUCCESSFUL
Total time: 6.143 secs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment