https://kotlinlang.org logo
Title
t

Tim

05/21/2022, 3:43 PM
Hi all, I reached the point where I would like to share code between two projects of mine. I assume it must be somehow possible to extract it into a (nonpublic) library and add that as a dependency in gradle. Is there a good guide / tutorial about how this can be achieved?
:not-kotlin: 2
r

Ruckus

05/21/2022, 4:43 PM
Look into maven local
r

Richard Gomez

05/21/2022, 5:07 PM
For something more portable, look into GitHub Packages or GitLab Packages (depending on what you use).
t

Tim

05/21/2022, 5:44 PM
Thank you. I will have a look into both of these.
v

Vampire

05/21/2022, 9:52 PM
You might be more after composite builds though if you want to work on the shared code and the project(s) at the same time.
l

lam bui

05/22/2022, 2:01 AM
mutils module, you can share library, after inject module to another project.