This is a redo of [pull/14561](https://git.openjdk.org/jdk/pull/14561). The change relaxes the prerequisites for the top level java.base-jmod target to not include targets for jmods of upgradable modules.
The problem with the previous fix was that jdk.jdeps, which is a non upgradable module, depends on java.compiler, which is an upgradable module. The jmod tool wants to resolve the complete module graph given to the `--hash-modules` option and this failed with: Error: Resolution failed: Module java.compiler not found, required by jdk.jdeps The fix is to modify the prerequisite list for the java.base-jmod target to include the jmod targets of the transitive deps of all the non upgradable modules. ------------- Commit messages: - JDK-8313661 Changes: https://git.openjdk.org/jdk/pull/15279/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15279&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8313661 Stats: 6 lines in 1 file changed: 4 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/15279.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15279/head:pull/15279 PR: https://git.openjdk.org/jdk/pull/15279