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

Meherdatta Chepuri

02/17/2023, 11:02 PM
Hello. I am Currently trying to use open api generator to generate api client for my project. How can I add it as a dependency to my shared project? for example: my api client project name is "dispatchClient" I generated the project using https://openapi-generator.tech/docs/generators/kotlin/ Creating this also added another build.gradle file in the dispatchClient folder. And added it in my build.gradle as
Copy code
val commonMain by getting {
            dependencies {
                implementation(project(":dispatchClient"))
            }
        }
However I keep getting this message when I try to synch my gradle files
Project with path ':dispatchClient' could not be found in project ':shared'.
Can someone help me understand what I might be doing wrong here? Thanks in advance.
m

Michal Harakal

02/20/2023, 5:41 PM
did you included the new generated gradle module
:dispatchClient
into you project? (via include in
settings.gradle
)?