Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies management by buildSrc and kotlin #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wada811
Copy link
Owner

@wada811 wada811 commented Apr 3, 2019

buildSrc + Kotlin vs library module

buildSrc + Kotlin

  • 🙆‍♂️ライブラリの一元管理( buildSrc/src/man/java/Dependencies.kt )
  • 🙅‍♂️ライブラリの新バージョンへのアップデートサジェストが出ない
  • 🙅‍♂️複数アーティファクトの参照をそれぞれ記述する必要がある

library module

  • 🙆‍♂️ライブラリの一元管理( Project Structure > Dependencies > <All Modules> )
  • 🙆‍♂️ライブラリの新バージョンへのアップデートサジェストが出る
  • 🙆‍♂️複数アーティファクトの参照をまとめてライブラリモジュールとして参照
  • 🙆‍♂️ライブラリの拡張関数をライブラリモジュールに定義可能
  • 🙆‍♂️ライブラリの ProGuard ファイルをライブラリモジュールで管理可能

Conclusion

ビルド速度はほぼ変わらない上に、library module 方式の方がメリットが多い

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant