Hi, can anyone point me in the direction of a blog...
# announcements
c
Hi, can anyone point me in the direction of a blog that explains how to setup and work (in intellij) on a gradle kotlin group of projects that share code. Multiplatform projects, unless I'm mistaken are focused on sharing code between several platforms, but the one project. I'd like to see for example, the creation of a shared library, that can be developed on its own and consumed by multiple other projects (regardless of mono or seperate repo) without having to build and publish to a local maven or some artifact tool. The key is to be able to enhance shared code while working on other projects that consume this shared code, and have intellij aware. I have tried importing code that has gradle includeBuild syntax, but have never succeeded in getting intellij to see these included source files. My use case; I'm working on a project that has 2 backend services in micronaut and a few cli apps. And one day, a jetpack compose GUI hopefully. I'd like to share a lot of common code in data classes, SQL jdbi, and general functions. Any recommendations?
b
For monorepo -> just use gradle modules (or includedBuilds if you want better separation) For separate repos -> use git submodules and then the above
1
Sorry, you'll have to google around for those. Don't have a ready example I could link to. You could have a look at this, though to give you a sense how gradle modules + included builds look like.