I created a library that depends on kotlin seriali...
# serialization
w
I created a library that depends on kotlin serialization library but in project I have to specify
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
how can I avoid this , my project does not need serialization library , only the dependent library needs it so anyone if uses my library does not need to put classpath like this
t
api
configuration for serialization runtime?
w
how ?
i don't know how to do that , can you suggest some links
t
j
Is the client consuming a compiled aar or jar? Won't the generated classes should already be part of the provided binary?
👍 1
If its a gradle source module that is being consumed it will need to execute the plugin to generate the code
👍 1
c
if you need it only on the classpath
implementation
is the correct scope
👍 1
w
I am distributing lib with jitpack or I'm going to , but for now I am including the project using implementation project