StefMa
12/31/2019, 7:16 AMlib and sample.
The library uses some dependencies (ktor for instance). They all are declared as implementation dependencies.
My sample should simply use the lib as a dependency.
For this i added
commonMainImplementation(project(":lib"))
But if I run my jvm sample (which has a main method) I get:
java.lang.NoClassDefFoundError: io/ktor/client/HttpClientJvmKtWhich is strange because I do not share the
HttpClient as a API. It is declared as internal and therefore it should not be shared with other libraries...
To my question:
Is this setup possible? How should it work then? How do I have to declare my lib dependency in the sample?cy
12/31/2019, 7:40 AMStefMa
12/31/2019, 9:27 AMStefMa
12/31/2019, 9:30 AMStefMa
01/07/2020, 9:37 AM