jasondlee
12/07/2017, 7:18 PMgildor
12/08/2017, 3:28 AMjasondlee
12/11/2017, 7:05 PMjasondlee
12/11/2017, 7:06 PMjasondlee
12/11/2017, 11:21 PMgildor
12/12/2017, 6:06 AMplugins{}
block dsl instead of buildscript
gildor
12/12/2017, 6:09 AMgildor
12/12/2017, 6:09 AMgildor
12/12/2017, 6:09 AMgildor
12/12/2017, 6:10 AMcommon
module, because it’s empty and doesn’t contains gradle configgildor
12/12/2017, 6:12 AMandroid
, you need only one settings.gradle per project, other will be ignored
2. each module can use own buildscript, but you override it in your case. Just use one in root project. But better to rewrite config to plugins dsl instead.
For now I just define all buildscript dependencies in root build.gradle, without allprojects
3. You don’t need intermidiate build.gradle in android
, build.gradle in android:app is enough, but actually now android
contains only app
, so you can just flatten dirrectories
4. You have a lot of duplicate repositories declarations. You can define repos for all projects at the same time in root build.gradle, or have separate one for each module
5. You don’t need kotlin-stdlib in buildscript dependencies
6. Minor thing. You can use subprojects instead of allprojects if you don’t have any code or plugins in root project (like in your case)jasondlee
12/12/2017, 6:36 AMjasondlee
12/12/2017, 6:36 AMgildor
12/12/2017, 6:43 AMjasondlee
12/12/2017, 8:23 PMjasondlee
12/12/2017, 8:23 PMgildor
12/13/2017, 2:17 AM