Skip to content

Instantly share code, notes, and snippets.

@melix
Created April 24, 2014 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melix/11249001 to your computer and use it in GitHub Desktop.
Save melix/11249001 to your computer and use it in GitHub Desktop.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.0'
}
}
apply plugin: 'android'
repositories {
mavenLocal()
jcenter()
}
dependencies {
compile 'com.google.android.tools:dx:1.7'
compile 'org.codehaus.groovy:groovy:2.3.0-droid-SNAPSHOT'
}
android {
compileSdkVersion 17
buildToolsVersion "19.0.3"
defaultConfig {
minSdkVersion 17
targetSdkVersion 17
}
}
android.applicationVariants.all {
// ...
// some hidden magic not ready for prime time
// ...
javaCompile.dependsOn("groovy${name}Compile")
javaCompile.enabled = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment