`ModuleInfoWriter` is not used by the runtime. Move it to the test library as `jdk.test.lib.util.ModuleInfoWriter`. The tests are updated to use the test library instead. `ModuleInfoWriter` depends on `jdk.internal.module` types and the Classfile API. Hence `@modules java.base/jdk.internal.classfile` and other classfile subpackages are added.
------------- Commit messages: - JDK-8304163: Move jdk.internal.module.ModuleInfoWriter to the test library Changes: https://git.openjdk.org/jdk/pull/13085/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13085&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8304163 Stats: 146 lines in 17 files changed: 87 ins; 15 del; 44 mod Patch: https://git.openjdk.org/jdk/pull/13085.diff Fetch: git fetch https://git.openjdk.org/jdk pull/13085/head:pull/13085 PR: https://git.openjdk.org/jdk/pull/13085