How to include same module twice

Hi everyone,

I’m new to using Gradle and I’m trying to figure out if I can use the same module twice in one project, but with different settings.

Here’s what I put in the project level build.gradle file:

project(":sdk")
project(":sdk") // This one should have a different build.gradle

If that doesn’t work, I thought about making two separate projects like this:

/sdk/A
/sdk/B

Each one, A and B, would have its own build.gradle file. And in the project level build.gradle file, it would look like this:

project(":sdk:A")
project(":sdk:B")

The problem is, I need A and B to use files from the sdk folder.

Does anyone know how to set this up?

Also, I’m doing all this because I want to release an SDK that has two versions of the kotlin-gradle-plugin. I tried using product flavors, but that didn’t work out.

Thanks for any help!