How to Build a Custom Gradle Plugin to Share Project Config - Multi-Module Architecture

How to Build a Custom Gradle Plugin to Share Project Config - Multi-Module Architecture

Philipp Lackner

9 месяцев назад

20,860 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

O'wayne Forrest
O'wayne Forrest - 10.10.2023 07:03

hey Bro Good Day can you make a video please on how to shrink and Pro take Res File in android studio please or how to use ResGuard in Gradle 8.1

Ответить
Morbix
Morbix - 05.10.2023 13:55

Will this work on a groovy version of gradle? Or should I migrate it to kotlin first?

Ответить
Nitesh Singh
Nitesh Singh - 03.10.2023 15:15

Hi Philipp,
Can you make 1 video on mockk unit testing library? Please explain me

Ответить
Faraz Ahmed
Faraz Ahmed - 03.10.2023 06:28

Hello @Phillip how would you increment version name or number constants in fastlane or some CICD with this custom implementation

Ответить
Diego Lassa
Diego Lassa - 02.10.2023 23:08

How do i do it for an Application-Type Module?

Ответить
Simone T
Simone T - 01.10.2023 21:22

For simplify, you can also set kotlin jvmToolchain(18) and remove compileOption and jvmTarget in kotlin branch, much cleaner for me

Ответить
krzl
krzl - 01.10.2023 20:42

I will add this things to my current app which already migrate to Kotlin DSL, thanks for sharing.

Ответить
Muhammad Safi Ullah
Muhammad Safi Ullah - 01.10.2023 20:36

Amazing.

Ответить
Anurag Verma
Anurag Verma - 01.10.2023 16:18

Hi @Philipp, Very nice and detailed video. Can you tell me how the module can apply App level BuildConfig ?

Ответить
Fo0nT
Fo0nT - 01.10.2023 15:54

Convention plugins are even better

Ответить
Ben Rapha
Ben Rapha - 01.10.2023 15:03

I recently migrated a multimodule project from Groovy to Kotlin DSL and also used convention plugins for sharing configurations. I must say these custom gradle plugins made my work alot easier.

Ответить
jazzyjester
jazzyjester - 01.10.2023 14:48

Very nice...

Ответить
Kyuubi
Kyuubi - 01.10.2023 14:16

Why not make `applyPlugins` and `setProjectConfig` as a Project extensions? We wouldn't have to provide a `project` object for each call and in the overriden apply method we would just reference to that by making a clean:
project.apply {
applyPlugins()
setProjectConfig()
}

Ответить