https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

dimsuz

12/19/2021, 7:27 PM
Yeah, it definetely feels like kmm + gradle is not a good match. Everytime I try to configure something build-related, it ends up leading into dozens of open tabs, google searches, swears and lost hopes 🙂 And this is after 9+ years of working with Android and gradle. I do hope that somehow I'll aquire more kmm+kts+gradle-fu, but I wish this was more friendly and welcoming ecosystem. P.S. And I didn't even try building my KMM project on iOS, I suspect this will be another "fun" ride :)
🙌 1
j

jimn

12/20/2021, 2:07 AM
the fastest way out of hell is finding mature github projects that are using the gradle plugins you want. in this regard the keywords are somewhat searchable.
💯 1
n

Nicklas Jensen

12/20/2021, 8:47 AM
Hey there @dimsuz. I recently published a KMM project, and I too found it difficult to get it published but eventually got the pieces put together, mostly thanks to looking into what other KMM libraries were doing. You can check out how I’ve set it up for Mockative
d

dimsuz

12/20/2021, 10:35 AM
Thanks! Yes, that was my plan, jim n 🙂 I've already set up a list of libs I'll use as a reference, will add Mockative to this list, thanks!
j

jimn

12/20/2021, 10:39 AM
I don't understand but perhaps IOs throws a wrinkle in things, how a discrete set of stages and POM fixtures in maven is less-good. it seems to me like using maven-antrun-plugin and similar addresses the "i can't write my project spaghetti" complaints that accompany xml dialects, and by my estimation ant xml and maven plugin xml is likely to be a more stable code snippet to borrow from project to project, backed up by 15 years of my own experience doing same.
d

dimsuz

12/20/2021, 11:00 AM
Unfortunately I've never worked in maven, but seen some devs which are afraid of gradle and favor maven. But also have heard that maven can be an xml-hell and gradle wasn't invented out of nowhere (but rather out of frustration with maven).
j

jimn

12/20/2021, 2:57 PM
i fail to see m8uch distinction between ant and gradle, but the fact is that every single ant project was a unqiue snowflake unlike any other ant project, and when maven 2 dropped jelly scripting this was no longer maven's problem. you will see venerable projects which were hardcore Ant all the way until gradle, or buck, or some other non-maven scripting option gained traction[at google].
3 Views