mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 09:15:27 +00:00
Build the built-in modules as a pack module jar from a list of module classes and check it with IrisApi's pack class checks
builtinModulesJar packages the classes listed in builtin-modules.txt from Iris core's compiled output, writes the module entry points, runs ModuleJarCheck on the result and only then puts build/libs/iris-builtins.jar in place. Nothing is listed yet.
This commit is contained in:
1 parent
98562bf962
commit
5a99c2e70c
3 files changed
+138
-1
No files matched your search
@@ -37,3 +37,14 @@ core against the existing allowlist.
|
||||
From this directory, run `./gradlew check` to invoke the Iris host's joint compilation and purity
|
||||
check and build the module sources archive. Run `./gradlew builtinSourcesJar` to build just the
|
||||
archive. The host project also provides `:core:defaultModuleSourcesJar` for the same source tree.
|
||||
|
||||
## Built-in modules as a pack module jar
|
||||
|
||||
`./gradlew builtinModulesJar` builds `build/libs/iris-builtins.jar`, the built-in modules as an ordinary pack
|
||||
module jar for a pack's `modules/` folder. `builtin-modules.txt` lists what goes in: `module <class>` lines
|
||||
(the jar's entry points, written to `META-INF/services/com.volmit.IrisModule`) and `include <pattern>` lines
|
||||
for further classes. The classes come from Iris core's compiled output, which the task builds first.
|
||||
Before the jar lands in `build/libs`, `ModuleJarCheck` of IrisApi runs the class checks of a pack load on it,
|
||||
with `art.arcane.iris.builtin` as the only exposed Iris package; a listed class that uses Iris internals fails
|
||||
the task naming the class and what it uses. `check` runs the task. Nothing is ported yet, so the jar is empty
|
||||
and not loadable as a pack module (a pack module jar must name at least one module).
|
||||
Reference in new issue
Block a user