webbukkit / dynmap

A set of Minecraft mods that provide a real time web-based map system for various Minecraft server implementations.
https://www.reddit.com/r/Dynmap/
Apache License 2.0
2.07k stars 421 forks source link

project unbuildable / random Gradle behaviour #3787

Closed felixtech-msp closed 2 years ago

felixtech-msp commented 2 years ago

Issue description: Project cannot be built as Grandle changes from JDK to JRE during the build and fails. Also building for Spigot triggers something completely else. And Gradle config seems to be broken.

Environment: OS: Windows 10 21H2 JDK: Oracle Java SE Development Kit 18.0.1.1 (64-bit) %JAVA_HOME% is set to C:\Program Files\Java\jdk-18.0.1.1 Gradle is run with the JDK (checked in gradlew.bat)

Steps to reproduce:

Expected behaviour: build Dynmap for Spigot

Actual behaviour: When running the command "gradlew :spigot:build" it does not build for Spigot at all. Instead it builds first for Fabric then for Forge (versions ascending) and building for Forge 1.19 dies as Gradle wants to use the JRE to build (which it doesn't for the previous Forge versions).

Full build output seen below:

C:\Users\abcde\Downloads\dynmap-3.0>echo %JAVA_HOME%
C:\Program Files\Java\jdk-18.0.1.1

C:\Users\abcde\Downloads\dynmap-3.0>gradlew :spigot:build
Downloading https://services.gradle.org/distributions/gradle-7.4.2-bin.zip
...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100%

Welcome to Gradle 7.4.2!

Here are the highlights of this release:
 - Aggregated test and JaCoCo reports
 - Marking additional test source directories as tests in IntelliJ
 - Support for Adoptium JDKs in Java toolchains

For more details see https://docs.gradle.org/7.4.2/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.4.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

> Configure project :fabric-1.14.4
Fabric Loom: 0.10.65
:remapping minecraft (TinyRemapper, official -> named)
:remapping minecraft (TinyRemapper, official -> intermediary)
:remapping 35 mods (TinyRemapper, intermediary -> named)
:remapping sources

> Configure project :fabric-1.15.2
Fabric Loom: 0.10.65
:remapping minecraft (TinyRemapper, official -> named)
:remapping minecraft (TinyRemapper, official -> intermediary)
:remapping 40 mods (TinyRemapper, intermediary -> named)
:remapping sources

> Configure project :fabric-1.16.4
Fabric Loom: 0.10.65
:remapping minecraft (TinyRemapper, official -> named)
:remapping minecraft (TinyRemapper, official -> intermediary)
:remapping 46 mods (TinyRemapper, intermediary -> named)
:remapping sources

> Configure project :fabric-1.17.1
Fabric Loom: 0.10.65
:remapping minecraft (TinyRemapper, official -> named)
:remapping minecraft (TinyRemapper, official -> intermediary)
Processing file: minecraft-project-@fabric-1.17.1-mapped.jar
:remapping 49 mods (TinyRemapper, intermediary -> named)
:remapping sources

> Configure project :fabric-1.18
Fabric Loom: 0.10.65
:remapping minecraft (TinyRemapper, official -> named)
:remapping minecraft (TinyRemapper, official -> intermediary)
Processing file: minecraft-project-@fabric-1.18-mapped.jar
:remapping 48 mods (TinyRemapper, intermediary -> named)
:remapping sources

> Configure project :fabric-1.18.2
Fabric Loom: 0.10.65
:remapping minecraft (TinyRemapper, official -> named)
:remapping minecraft (TinyRemapper, official -> intermediary)
Processing file: minecraft-project-@fabric-1.18.2-mapped.jar
:remapping 44 mods (TinyRemapper, intermediary -> named)
:remapping 3 mods (TinyRemapper, intermediary -> named)
:remapping sources

> Configure project :fabric-1.19
Fabric Loom: 0.12.51
Processing file: minecraft-project-@fabric-1.19-merged-named.jar
Processing file: minecraft-project-@fabric-1.19-merged-named.jar
:remapping 40 mods (TinyRemapper, intermediary -> named)
:remapping sources

> Configure project :forge-1.17.1
Java: 18.0.1.1 JVM: 18.0.1.1+2-6(Oracle Corporation) Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.

> Configure project :forge-1.18
Java: 18.0.1.1 JVM: 18.0.1.1+2-6(Oracle Corporation) Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.

> Configure project :forge-1.18.2
Java: 18.0.1.1 JVM: 18.0.1.1+2-6(Oracle Corporation) Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.

> Configure project :forge-1.19
Java: 18.0.1.1 JVM: 18.0.1.1+2-6(Oracle Corporation) Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.
Setting up MCP environment
Initializing steps
Executing steps
 > Running 'downloadManifest'
 > Running 'downloadJson'
 > Running 'downloadClient'
 > Running 'downloadServer'
 > Running 'stripClient'
 > Running 'stripServer'
 > Running 'merge'
 > Running 'rename'
Stopping at requested step: C:\Users\abcde\.gradle\caches\forge_gradle\mcp_repo\de\oceanlabs\mcp\mcp_config\1.14.4-20190829.143755\joined\rename\output.jar
java.lang.IllegalStateException: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation.
        at org.gradle.api.internal.tasks.compile.JdkTools.<init>(JdkTools.java:77)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.createJdkTools(JavaHomeBasedJavaCompilerFactory.java:48)
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:43)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:29)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.createCompileTask(JdkJavaCompiler.java:63)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:53)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:39)
        at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135)
        at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43)
        at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97)
        at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56)
        at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138)
        at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
        at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
        at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
java.lang.IllegalStateException: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation.
        at org.gradle.api.internal.tasks.compile.JdkTools.<init>(JdkTools.java:77)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.createJdkTools(JavaHomeBasedJavaCompilerFactory.java:48)
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:43)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:29)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.createCompileTask(JdkJavaCompiler.java:63)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:53)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:39)
        at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135)
        at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43)
        at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97)
        at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56)
        at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138)
        at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
        at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
        at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Setting up MCP environment
Initializing steps
Executing steps
 > Running 'downloadManifest'
 > Running 'downloadJson'
 > Running 'downloadClient'
 > Running 'downloadServer'
 > Running 'stripClient'
 > Running 'stripServer'
 > Running 'merge'
 > Running 'rename'
Stopping at requested step: C:\Users\abcde\.gradle\caches\forge_gradle\mcp_repo\de\oceanlabs\mcp\mcp_config\1.15.2-20200515.085601\joined\rename\output.jar
java.lang.IllegalStateException: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation.
        at org.gradle.api.internal.tasks.compile.JdkTools.<init>(JdkTools.java:77)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.createJdkTools(JavaHomeBasedJavaCompilerFactory.java:48)
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:43)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:29)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.createCompileTask(JdkJavaCompiler.java:63)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:53)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:39)
        at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135)
        at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43)
        at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97)
        at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56)
        at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138)
        at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
        at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
        at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
java.lang.IllegalStateException: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation.
        at org.gradle.api.internal.tasks.compile.JdkTools.<init>(JdkTools.java:77)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.createJdkTools(JavaHomeBasedJavaCompilerFactory.java:48)
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:43)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:29)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.createCompileTask(JdkJavaCompiler.java:63)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:53)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:39)
        at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135)
        at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43)
        at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97)
        at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56)
        at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138)
        at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
        at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
        at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Setting up MCP environment
Initializing steps
Executing steps
 > Running 'downloadManifest'
 > Running 'downloadJson'
 > Running 'downloadClient'
 > Running 'downloadServer'
 > Running 'stripClient'
 > Running 'stripServer'
 > Running 'merge'
 > Running 'rename'
Stopping at requested step: C:\Users\abcde\.gradle\caches\forge_gradle\mcp_repo\de\oceanlabs\mcp\mcp_config\1.16.5-20210115.111550\joined\rename\output.jar
java.lang.IllegalStateException: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation.
        at org.gradle.api.internal.tasks.compile.JdkTools.<init>(JdkTools.java:77)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.createJdkTools(JavaHomeBasedJavaCompilerFactory.java:48)
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:43)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:29)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.createCompileTask(JdkJavaCompiler.java:63)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:53)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:39)
        at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135)
        at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43)
        at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97)
        at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56)
        at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138)
        at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
        at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
        at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
java.lang.IllegalStateException: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation.
        at org.gradle.api.internal.tasks.compile.JdkTools.<init>(JdkTools.java:77)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.createJdkTools(JavaHomeBasedJavaCompilerFactory.java:48)
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:43)
        at org.gradle.api.internal.tasks.compile.JavaHomeBasedJavaCompilerFactory.create(JavaHomeBasedJavaCompilerFactory.java:29)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.createCompileTask(JdkJavaCompiler.java:63)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:53)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:39)
        at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135)
        at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49)
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43)
        at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97)
        at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32)
        at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56)
        at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138)
        at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
        at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
        at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Setting up MCP environment
Initializing steps
Executing steps
 > Running 'downloadManifest'
 > Running 'downloadJson'
 > Running 'downloadClient'
 > Running 'downloadServer'
 > Running 'downloadClientMappings'
 > Running 'mergeMappings'
 > Running 'stripClient'
 > Running 'stripServer'
 > Running 'merge'
 > Running 'listLibraries'
 > Running 'rename'
Stopping at requested step: C:\Users\abcde\.gradle\caches\forge_gradle\mcp_repo\de\oceanlabs\mcp\mcp_config\1.17.1-20210706.113038\joined\rename\output.jar
[11:56:58] [main/INFO]: Writing debug log file accesstransform.log
[11:56:58] [main/INFO]: Access Transformer processor running version 8.0.7+8.0.7+master.43473d43
[11:56:58] [main/INFO]: Command line arguments [--inJar, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\build\fg_cache\net\minecraftforge\forge\1.17.1-37.0.12\forge-1.17.1-37.0.12-injected.jar, --outJar, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\build\fg_cache\net\minecraftforge\forge\1.17.1-37.0.12_mapped_official_1.17.1\forge-1.17.1-37.0.12_mapped_official_1.17.1.jar, --logFile, accesstransform.log, --atFile, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\src\main\resources\META-INF\accesstransformer.cfg, --atFile, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\build\_atJar_4\parent_at.cfg]
[11:56:58] [main/INFO]: Reading from C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\build\fg_cache\net\minecraftforge\forge\1.17.1-37.0.12\forge-1.17.1-37.0.12-injected.jar
[11:56:58] [main/INFO]: Writing to C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\build\fg_cache\net\minecraftforge\forge\1.17.1-37.0.12_mapped_official_1.17.1\forge-1.17.1-37.0.12_mapped_official_1.17.1.jar
[11:56:58] [main/INFO]: Transformer file C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\src\main\resources\META-INF\accesstransformer.cfg
[11:56:58] [main/INFO]: Transformer file C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\build\_atJar_4\parent_at.cfg
[11:56:58] [main/WARN]: Found existing output jar C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\build\fg_cache\net\minecraftforge\forge\1.17.1-37.0.12_mapped_official_1.17.1\forge-1.17.1-37.0.12_mapped_official_1.17.1.jar, overwriting
[11:57:01] [main/INFO]: JAR transformation complete C:\Users\abcde\Downloads\dynmap-3.0\forge-1.17.1\build\fg_cache\net\minecraftforge\forge\1.17.1-37.0.12_mapped_official_1.17.1\forge-1.17.1-37.0.12_mapped_official_1.17.1.jar
Creating SRG -> MCP TSRG
Setting up MCP environment
Initializing steps
Executing steps
 > Running 'downloadManifest'
 > Running 'downloadJson'
 > Running 'downloadClient'
 > Running 'downloadServer'
 > Running 'extractServer'
 > Running 'downloadClientMappings'
 > Running 'mergeMappings'
 > Running 'stripClient'
 > Running 'stripServer'
 > Running 'merge'
 > Running 'listLibraries'
 > Running 'rename'
Stopping at requested step: C:\Users\abcde\.gradle\caches\forge_gradle\mcp_repo\de\oceanlabs\mcp\mcp_config\1.18-20211130.085255\joined\rename\output.jar
[11:58:09] [main/INFO]: Writing debug log file accesstransform.log
[11:58:09] [main/INFO]: Access Transformer processor running version 8.0.7+8.0.7+master.43473d43
[11:58:09] [main/INFO]: Command line arguments [--inJar, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\build\fg_cache\net\minecraftforge\forge\1.18-38.0.12\forge-1.18-38.0.12-injected.jar, --outJar, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\build\fg_cache\net\minecraftforge\forge\1.18-38.0.12_mapped_official_1.18\forge-1.18-38.0.12_mapped_official_1.18.jar, --logFile, accesstransform.log, --atFile, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\src\main\resources\META-INF\accesstransformer.cfg, --atFile, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\build\_atJar_4\parent_at.cfg]
[11:58:09] [main/INFO]: Reading from C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\build\fg_cache\net\minecraftforge\forge\1.18-38.0.12\forge-1.18-38.0.12-injected.jar
[11:58:09] [main/INFO]: Writing to C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\build\fg_cache\net\minecraftforge\forge\1.18-38.0.12_mapped_official_1.18\forge-1.18-38.0.12_mapped_official_1.18.jar
[11:58:09] [main/INFO]: Transformer file C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\src\main\resources\META-INF\accesstransformer.cfg
[11:58:09] [main/INFO]: Transformer file C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\build\_atJar_4\parent_at.cfg
[11:58:09] [main/WARN]: Found existing output jar C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\build\fg_cache\net\minecraftforge\forge\1.18-38.0.12_mapped_official_1.18\forge-1.18-38.0.12_mapped_official_1.18.jar, overwriting
[11:58:12] [main/INFO]: JAR transformation complete C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18\build\fg_cache\net\minecraftforge\forge\1.18-38.0.12_mapped_official_1.18\forge-1.18-38.0.12_mapped_official_1.18.jar
Creating SRG -> MCP TSRG
Setting up MCP environment
Initializing steps
Executing steps
 > Running 'downloadManifest'
 > Running 'downloadJson'
 > Running 'downloadClient'
 > Running 'downloadServer'
 > Running 'extractServer'
 > Running 'downloadClientMappings'
 > Running 'mergeMappings'
 > Running 'stripClient'
 > Running 'stripServer'
 > Running 'merge'
 > Running 'listLibraries'
 > Running 'rename'
Stopping at requested step: C:\Users\abcde\.gradle\caches\forge_gradle\mcp_repo\de\oceanlabs\mcp\mcp_config\1.18.2-20220228.144236\joined\rename\output.jar
[11:59:12] [main/INFO]: Writing debug log file accesstransform.log
[11:59:12] [main/INFO]: Access Transformer processor running version 8.0.7+8.0.7+master.43473d43
[11:59:12] [main/INFO]: Command line arguments [--inJar, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\build\fg_cache\net\minecraftforge\forge\1.18.2-40.0.2\forge-1.18.2-40.0.2-injected.jar, --outJar, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\build\fg_cache\net\minecraftforge\forge\1.18.2-40.0.2_mapped_official_1.18.2\forge-1.18.2-40.0.2_mapped_official_1.18.2.jar, --logFile, accesstransform.log, --atFile, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\src\main\resources\META-INF\accesstransformer.cfg, --atFile, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\build\_atJar_4\parent_at.cfg]
[11:59:12] [main/INFO]: Reading from C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\build\fg_cache\net\minecraftforge\forge\1.18.2-40.0.2\forge-1.18.2-40.0.2-injected.jar
[11:59:12] [main/INFO]: Writing to C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\build\fg_cache\net\minecraftforge\forge\1.18.2-40.0.2_mapped_official_1.18.2\forge-1.18.2-40.0.2_mapped_official_1.18.2.jar
[11:59:12] [main/INFO]: Transformer file C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\src\main\resources\META-INF\accesstransformer.cfg
[11:59:12] [main/INFO]: Transformer file C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\build\_atJar_4\parent_at.cfg
[11:59:12] [main/WARN]: Found existing output jar C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\build\fg_cache\net\minecraftforge\forge\1.18.2-40.0.2_mapped_official_1.18.2\forge-1.18.2-40.0.2_mapped_official_1.18.2.jar, overwriting
[11:59:15] [main/INFO]: JAR transformation complete C:\Users\abcde\Downloads\dynmap-3.0\forge-1.18.2\build\fg_cache\net\minecraftforge\forge\1.18.2-40.0.2_mapped_official_1.18.2\forge-1.18.2-40.0.2_mapped_official_1.18.2.jar
Creating SRG -> MCP TSRG
[11:59:38] [main/INFO]: Writing debug log file accesstransform.log
[11:59:38] [main/INFO]: Access Transformer processor running version 8.0.7+8.0.7+master.43473d43
[11:59:38] [main/INFO]: Command line arguments [--inJar, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\build\fg_cache\net\minecraftforge\forge\1.19-41.0.38\forge-1.19-41.0.38-injected.jar, --outJar, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\build\fg_cache\net\minecraftforge\forge\1.19-41.0.38_mapped_official_1.19\forge-1.19-41.0.38_mapped_official_1.19.jar, --logFile, accesstransform.log, --atFile, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\src\main\resources\META-INF\accesstransformer.cfg, --atFile, C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\build\_atJar_4\parent_at.cfg]
[11:59:38] [main/INFO]: Reading from C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\build\fg_cache\net\minecraftforge\forge\1.19-41.0.38\forge-1.19-41.0.38-injected.jar
[11:59:38] [main/INFO]: Writing to C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\build\fg_cache\net\minecraftforge\forge\1.19-41.0.38_mapped_official_1.19\forge-1.19-41.0.38_mapped_official_1.19.jar
[11:59:38] [main/INFO]: Transformer file C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\src\main\resources\META-INF\accesstransformer.cfg
[11:59:38] [main/INFO]: Transformer file C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\build\_atJar_4\parent_at.cfg
[11:59:38] [main/WARN]: Found existing output jar C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\build\fg_cache\net\minecraftforge\forge\1.19-41.0.38_mapped_official_1.19\forge-1.19-41.0.38_mapped_official_1.19.jar, overwriting
[11:59:41] [main/INFO]: JAR transformation complete C:\Users\abcde\Downloads\dynmap-3.0\forge-1.19\build\fg_cache\net\minecraftforge\forge\1.19-41.0.38_mapped_official_1.19\forge-1.19-41.0.38_mapped_official_1.19.jar
Creating SRG -> MCP TSRG

FAILURE: Build failed with an exception.

* What went wrong:
Failed to notify build listener.
> Could not resolve all files for configuration ':forge-1.14.4:runtimeClasspathCopy'.
   > Could not find net.minecraftforge:forge:1.14.4-28.2.10_mapped_snapshot_20190719-1.14.3_at_27c56a409019621cf5bb1c1015e761fa6f4f4d9a.
     Searched in the following locations:
       - file:/C:/Users/abcde/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.14.4-28.2.10_mapped_snapshot_20190719-1.14.3_at_27c56a409019621cf5bb1c1015e761fa6f4f4d9a/forge-1.14.4-28.2.10_mapped_snapshot_20190719-1.14.3_at_27c56a409019621cf5bb1c1015e761fa6f4f4d9a.pom
       - file:/C:/Users/abcde/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.14.4-28.2.10_mapped_snapshot_20190719-1.14.3_at_27c56a409019621cf5bb1c1015e761fa6f4f4d9a/forge-1.14.4-28.2.10_mapped_snapshot_20190719-1.14.3_at_27c56a409019621cf5bb1c1015e761fa6f4f4d9a.jar
     Required by:
         project :forge-1.14.4
> Could not resolve all files for configuration ':forge-1.15.2:runtimeClasspathCopy'.
   > Could not find net.minecraftforge:forge:1.15.2-31.2.3_mapped_snapshot_20200514-1.15.1_at_e19e39f4c72a9eedc3249ab102b822a2e898097d.
     Searched in the following locations:
       - file:/C:/Users/abcde/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.15.2-31.2.3_mapped_snapshot_20200514-1.15.1_at_e19e39f4c72a9eedc3249ab102b822a2e898097d/forge-1.15.2-31.2.3_mapped_snapshot_20200514-1.15.1_at_e19e39f4c72a9eedc3249ab102b822a2e898097d.pom
       - file:/C:/Users/abcde/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.15.2-31.2.3_mapped_snapshot_20200514-1.15.1_at_e19e39f4c72a9eedc3249ab102b822a2e898097d/forge-1.15.2-31.2.3_mapped_snapshot_20200514-1.15.1_at_e19e39f4c72a9eedc3249ab102b822a2e898097d.jar
     Required by:
         project :forge-1.15.2
> Could not resolve all files for configuration ':forge-1.16.5:runtimeClasspathCopy'.
   > Could not find net.minecraftforge:forge:1.16.5-36.0.15_mapped_snapshot_20201028-1.16.3_at_7b197b6dcb763b75ecc1a7183cc0d9411bbc5a53.
     Searched in the following locations:
       - file:/C:/Users/abcde/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.0.15_mapped_snapshot_20201028-1.16.3_at_7b197b6dcb763b75ecc1a7183cc0d9411bbc5a53/forge-1.16.5-36.0.15_mapped_snapshot_20201028-1.16.3_at_7b197b6dcb763b75ecc1a7183cc0d9411bbc5a53.pom
       - file:/C:/Users/abcde/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.0.15_mapped_snapshot_20201028-1.16.3_at_7b197b6dcb763b75ecc1a7183cc0d9411bbc5a53/forge-1.16.5-36.0.15_mapped_snapshot_20201028-1.16.3_at_7b197b6dcb763b75ecc1a7183cc0d9411bbc5a53.jar
     Required by:
         project :forge-1.16.5

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 17m 25s

Conclusion: Either the Gradle config is broken or the instructions on how to build are wrong or incomplete.

kosma commented 2 years ago

What is your %PATH%? I suspect you have a case where JAVA_HOME points to Java 18 but PATH points to Java 1.8. This could possibly cause trouble?

Also: it's not "building" for Forge/Fabric - it's only running the configure stage. There are options in newer Gradle versions to skip configuring unrelated projects but we're not using them yet.

felixtech-msp commented 2 years ago

In PATH the C:\Program Files\Common Files\Oracle\Java\javapath folder is referenced. No other Java related stuff is in PATH. I confirmed that this references JDK 18. Also in a regular cmd java -version outputs java version "18.0.1.1" 2022-04-22. Calling javac -version outputs javac 18.0.1.1.

I was also able to reproduce the issue on a different machine with JDK 17 and JRE 8 installed and where JAVA_HOME referenced the JDK 17 and javapath is also in PATH and java -version shows java version "17.0.1" 2021-10-19 LTS.

I also tested building in a Docker container on Ubuntu which works fine. I'd say for reliable building a reliable OS is recommended.

kosma commented 2 years ago

My recommendation would be to not use C:\Program Files\Common Files\Oracle\Java\javapath in PATH but instead directly reference the correct JRE/JDK's bin folder. I have built with this setup under Windows many times. Another possibility is that Oracle Java is somehow different from Adoption that I've been using?

masmc05 commented 2 years ago

i don't think building a java project using a jre is a good idea, he should use a jdk (java developing kit), jre (java runtime environment) is used to just run java programs, also the error sais Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation., i think it's because it was on a jre, not jdk if you had an error using a jdk, maybe it was just other error? can you send the error when using a jdk

felixtech-msp commented 2 years ago

I am building with JDK (JRE doesn't even have javac so it wouldn't even work. The whole issue I'm reporting is that Gradle is started with JDK and runs on it and in the middle it wants to switch to a JRE it shouldn't use or even know that it's there. Outputting different paths from gradlew.bat showed me even that everything is started with JDK. I was completely unable to find out where any why Gradle switches to JRE, otherwise I would have said where it does that.

masmc05 commented 2 years ago

he didn't start to compile the project (would be :compileJava or similar), so the fact that it doesn't have javac doesn't change anything, did you check both user environment variables and system environment variables (in both of them check both path and java_home) doesn't have java 8?

kosma commented 2 years ago

Please try building without C:\Program Files\Common Files\Oracle\Java\javapath in PATH and report back.

mikeprimm commented 2 years ago

Project builds fine in multiple other environments - this is a developer specific condition, so I'm removing the 'Bug' marker: it's not a bug in the code, and as a problem it doesn't affect anyone with a correctly defined build environment.

kosma commented 2 years ago

No response, closing issue. Please reopen if you still have trouble building after doing https://github.com/webbukkit/dynmap/issues/3787#issuecomment-1171088220.