Help me to set up comile dependencies in Android Studio in build.gradle. I mean that they not include into final APK.
this build.gradle works fine but i don\'t need
With Android Studio 1.1.0, I couldn't find a consolidated set of instructions for adding Lombok that worked for me. That includes Lombok's own setup page: http://projectlombok.org/setup/android.html
Here's everything I had to do to get it working (on OS X):
Browse repositories...
Install plugin
provided 'org.projectlombok:lombok:1.16.2'
subprojects
approach in build.gradle in the project root (from Олександр Самсонов's answer) works also, but it appears that requires moving the configuration from app/build.gradle (you aren't allowed to further extend the configuration in the subprojects). I didn't want to move the entire android configuration, so I kept it in the app/build.gradle instead.lombok.config
file in the root of the project containing two lines:
lombok.anyConstructor.suppressConstructorProperties = true
lombok.addGeneratedAnnotation = false