Skip to content

Instantly share code, notes, and snippets.

@TealOcean
Created February 16, 2014 04:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TealOcean/9029359 to your computer and use it in GitHub Desktop.
Save TealOcean/9029359 to your computer and use it in GitHub Desktop.
Android Annotations Gradle Sample
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:+'
classpath 'com.neenbedankt.gradle.plugins:android-apt:+'
}
}
apply plugin: 'android'
apply plugin: 'android-apt'
repositories {
mavenCentral()
mavenLocal()
}
apt {
arguments {
resourcePackageName "com.example.helloworld"
androidManifestFile variant.processResources.manifestFile
}
}
dependencies {
//Annotation Processors
apt "org.androidannotations:androidannotations:+"
compile 'org.androidannotations:androidannotations-api:+'
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment