Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. mavenLocal()
  5. maven {
  6. url 'http://spoon.gforge.inria.fr/repositories/'
  7. }
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:2.3.0'
  11. classpath group: 'fr.inria.gforge.spoon',
  12. name: 'spoon-gradle-plugin',
  13. version:'1.0-SNAPSHOT'
  14. classpath files('build/classes/main')
  15.  
  16.  
  17. // NOTE: Do not place your application dependencies here; they belong
  18. // in the individual module build.gradle files
  19. }
  20. }
  21.  
  22. allprojects {
  23. repositories {
  24. jcenter()
  25. }
  26. }
  27.  
  28. apply plugin: 'java'
  29. apply plugin: 'spoon'
  30.  
  31. spoon {
  32. processors = ['com.craftman.spoonprocessor.CustomProcessor']
  33. }
  34.  
  35. public class CustomProcessor extends AbstractAnnotationProcessor<DoInBackground,CtMethod> {
  36.  
  37.  
  38. @Override
  39. public void process(DoInBackground annotation, CtMethod method) {
  40. /**
  41. my logic
  42. **/
  43. }
  44.  
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement