mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
A single API_PACKAGE_PREFIX made built-in modules in Iris packages (art.arcane.iris...) invisible, so pack jars could not require their stages. ExposedPackages now holds the packages packs may use: always the API (IrisModule's package), plus what the host passes to the new PackModules.load(packRoot, exposedHostPackages). Names must be package names (trailing dot accepted) and match whole packages only. ApiAndJdkClassLoader becomes ExposedHostClassLoader and routes classes and resources of every exposed package to the host loader. A jar that ships a class of any exposed package fails; the compileOnly API hint stays for the API, other packages get their own message. That check moves from ModuleJar to PackClassCheck. A reference missing from any exposed package is the "different build" error. Tests use a built-in module in example.builtin, outside com.volmit., which a pack jar can require only when that package is exposed.