Maven+you

Ce37cf75fa85b89a33916545978c64de?s=47 @hotchemi
October 21, 2014

 Maven+you

potatotips #10

Ce37cf75fa85b89a33916545978c64de?s=128

@hotchemi

October 21, 2014
Tweet

Transcript

  1. Maven + You @hotchemi The world you don’t know #potatotips

    10
  2. • Android Developer • Recruit Technologies Co.,Ltd. • GitHub: hotchemi

    I’m hotchemi…
  3. Android Build System…

  4. • Ant • Gradle • Buck • Maven Too many!

  5. • Very poor module system • Very slow • Official

    build system from google (past) Ant
  6. • Beta official build system • Build variants • Support

    multiple module • Very very slow… Gradle
  7. • Created by facebook • Very fast! • Solves 64k

    problem? Buck
  8. • Unofficial build system • Support multiple module • Not

    so slow… Maven
  9. Gradle is official, but someone uses maven…

  10. None
  11. None
  12. None
  13. None
  14. 1. How to build with maven?

  15. • Unofficial but active! • Android studio support • Provides

    apklib format • Support aar! • Support multiple module • https://github.com/jayway/maven-android-plugin maven-android-plugin
  16. None
  17. What is apklib?

  18. None
  19. Build variants?

  20. • Use profile and resourceOverlayDirectories options • Source code may

    be can • You can create build variants as many as you like Ofcourse!
  21. 2. Release library

  22. • Automate release and prepare for next version • Very

    very useful! • Support jenkins plugin • http://maven.apache.org/maven-release/maven-release-plugin/ Maven release plugin
  23. None
  24. None
  25. None
  26. 3. How to create plugin?

  27. • Maven architecture is pluggable • You can release to

    maven central • e.x) https://github.com/hotchemi/deploygate-maven-plugin It’s very easy!
  28. None
  29. • Maven is not so bad!! • May be faster

    than gradle • Maven-release-plugin is very useful! • Create your own maven plugin! Summary
  30. Thank you for your time!