Yes, using the Export-Package
and Import-Package
manifest headers.
If you use an automated build system, it might detect the relationship and add these headers for you. Both Maven and Gradle use bnd to generate the necessary manifest headers. The bnd integration is provided by the maven-bundle-plugin and the Gradle OSGi plugin, respectively.