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

通过buildSrc统一管理依赖库 #10

Closed
fakeSleeper opened this issue Jan 20, 2021 · 2 comments
Closed

通过buildSrc统一管理依赖库 #10

fakeSleeper opened this issue Jan 20, 2021 · 2 comments

Comments

@fakeSleeper
Copy link

请教一下,你于2020年9月17号添加的“buildSrc”是个什么模块?怎么与“app”模块和“base-library”模块产生联系的,怎么在app和base-library中就能直接调用 buildSrc中的那几个objec类了?我看了半天,没有搞懂,烦请兄弟有空帮忙释疑一下,感谢。 ps:代码写的的确很美观

@zskingking
Copy link
Owner

其实就是kotlin dsl写法,通常gradle是用groovy语言写的,之所以kotlin可以直接引用(即智能提示)是因为它是静态语言,而groovy是动态语言所以不支持直接引用。。。关于什么是buildSrc给你推荐一篇文章,相信能找到你的答案 https://juejin.cn/post/6844904176250519565

@fakeSleeper
Copy link
Author

谢谢了,正好刚刚领略了kotlin dsl 之美

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

No branches or pull requests

2 participants