I am developing with Architectury, which is mostly derived from Forge. I am mostly a Fabric developer, and I was able to get the Fabric side of the mod to run and work properly.
However, the Forge side crashes before the game window even pops up, giving this error message:
[Architectury Transformer] Architectury Runtime 5.2.61
[Architectury Transformer] Read classpath in 3.282 s
[Architectury Transformer] Listening at C:\Users\adam5\Desktop\minecraft\ModMaking\DiscsPlus\common\build\devlibs\discsplus-4.0.0-dev.jar
[17:24:14] [main/INFO] (Launcher) ModLauncher running: args [--launchTarget, forgeclientuserdev, --version, MOD_DEV, --assetIndex, 1.18.2-1.18, --assetsDir, C:\Users\adam5\.gradle\caches\fabric-loom\assets, --gameDir, ., --fml.forgeVersion, 40.0.17, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220228.144236]
[17:24:14] [main/INFO] (Launcher) ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 17.0.1 by Oracle Corporation
[17:24:14] [main/INFO] (mixin) SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/adam5/.gradle/caches/transforms-3/aa8319b7eda96f1a0f11b5e356b7c2d8/transformed/alfd-transformed/mixin-patched-0.8.5.5.jar%2317!/ Service=ModLauncher Env=CLIENT
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file javafmllanguage-1.18.2-40.0.17.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6eacf3be
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file mclanguage-1.18.2-40.0.17.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6eacf3be
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file fmlcore-1.18.2-40.0.17.jar of type LIBRARY with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6eacf3be
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file forge-1.18.2-40.0.17-minecraft-project-@forge-merged-named.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6eacf3be
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file main of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6eacf3be
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6eacf3be
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file B98cbb1484989-B98cbb1484989.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@c105912
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file 1619875705528534351.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@c105912
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file B98cbb1484989-B98cbb1484989.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@c105912
[17:24:15] [main/INFO] (ModDiscoverer) Found mod file 1619875705528534351.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.ClasspathLocator@c105912
Exception in thread "main" java.lang.module.ResolutionException: Modules generated_7a0a80c and discsplus export package com.atom596.discsplus to module forge
at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:901)
at java.base/java.lang.module.Resolver.failTwoSuppliers(Resolver.java:815)
at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:736)
at java.base/java.lang.module.Resolver.finish(Resolver.java:380)
at java.base/java.lang.module.Configuration.<init>(Configuration.java:140)
at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:494)
at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:70)
at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.TransformationServicesHandler.buildTransformingClassLoader(TransformationServicesHandler.java:60)
at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.run(Launcher.java:104)
at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)
at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:217)
Process finished with exit code 130