Skip to content

Instantly share code, notes, and snippets.

@glombard
Created February 6, 2015 01:36
Show Gist options
  • Save glombard/240cf623790ac83349fc to your computer and use it in GitHub Desktop.
Save glombard/240cf623790ac83349fc to your computer and use it in GitHub Desktop.
How to apply android-apt plugin from a shared gradle file using the fully qualified class name
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
}
apply plugin: com.neenbedankt.gradle.androidapt.AndroidAptPlugin
dependencies {
compile 'com.squareup.dagger:dagger:1.2.2'
apt 'com.squareup.dagger:dagger-compiler:1.2.2'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment