Created
February 16, 2014 04:43
-
-
Save TealOcean/9029359 to your computer and use it in GitHub Desktop.
Android Annotations Gradle Sample
This file contains 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
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