Skip to content

Instantly share code, notes, and snippets.

@amolbrid
Last active December 23, 2015 14:09
Show Gist options
  • Save amolbrid/6647113 to your computer and use it in GitHub Desktop.
Save amolbrid/6647113 to your computer and use it in GitHub Desktop.
Basic gradle build file
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
dependencies {
compile "joda-time:joda-time:2.2"
}
task wrapper(type: Wrapper) {
gradleVersion = '1.7'
}
task "init-project" << {
sourceSets*.java.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment