The Gradle OSGi scripting, intro'd in
HHH-7941, needs a clear separation of API/SPI and Internal packages in order to create the correct set of Export-Packages and Private-Packages. Anything with ".internal" in it is assumed Private. See core or entitymanager for an example.
Then, integrate with an OSGi container and correct any issues found.