zt
05/28/2024, 9:35 PMcommon
subproject that contains an interface used in each subproject to keep the design consistent, the problem im having is I want to only use this interface in my own code, it should not be used outside of my library source code. I do not want this common module in the publication
interface Library {
fun version(): Int
fun configuration(): String
fun license(): String
}
My implementation class for each subproject all say the same kind of error: Cannot access 'dev.zt64.ffmpegkt.Library' which is a supertype of 'dev.zt64.ffmpegkt.avformat.AVFormat'. Check your module classpath for missing or conflicting dependencies
In the subproject i just have implementation(project(":common"))
Is there something I can do?tapchicoma
05/28/2024, 9:48 PMLibrary
interface has internal
visibility?zt
05/28/2024, 9:51 PMtapchicoma
05/28/2024, 9:52 PMVampire
05/28/2024, 10:08 PMAVFormat
. As Library
is a superclass / interface, it is part of the public API and thus has to be api
, not implementation
, or the compiler chokes with exactly that message.Vampire
05/28/2024, 10:09 PM