gradlew failing to compile

It's the 1st time I'm compiling a repo. It always fails. This is what's logged:
> Task :paper:decompileJar FAILED
> Task :getPaperUpstreamData FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':paper:decompileJar'.
> io.papermc.paperweight.PaperweightException: Execution of 'org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler' failed with exit code 137. Log file: /home/antonio/PaperRecorder/.gradle/caches/paperweight/upstreams/paper/.gradle/caches/paperweight/taskCache/decompileJar.log Classpath: /home/antonio/.gradle/caches/modules-2/files-2.1/net.minecraftforge/forgeflower/2.0.627.2/e7434db4306e8dd6cc81c2a72a5d700caefca09/forgeflower-2.0.627.2.jar:/home/antonio/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/20.1.0/2fcd1f3225bca0c4a7bc931142076f8c1e80993f/annotations-20.1.0.jar

* 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

BUILD FAILED in 2m 31s
> Task :paper:decompileJar FAILED
> Task :getPaperUpstreamData FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':paper:decompileJar'.
> io.papermc.paperweight.PaperweightException: Execution of 'org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler' failed with exit code 137. Log file: /home/antonio/PaperRecorder/.gradle/caches/paperweight/upstreams/paper/.gradle/caches/paperweight/taskCache/decompileJar.log Classpath: /home/antonio/.gradle/caches/modules-2/files-2.1/net.minecraftforge/forgeflower/2.0.627.2/e7434db4306e8dd6cc81c2a72a5d700caefca09/forgeflower-2.0.627.2.jar:/home/antonio/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/20.1.0/2fcd1f3225bca0c4a7bc931142076f8c1e80993f/annotations-20.1.0.jar

* 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

BUILD FAILED in 2m 31s
4 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by who1ssus#0
ProGamingDk
ProGamingDk2y ago
did u try gradlew clean first iirc can help with some issues
1who¡ssus?
1who¡ssus?OP2y ago
no, ill try actually i get an error even with gradle clean
FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().

* 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
FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().

* 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
wait hold on nah still failing same error !close
Admincraft Meta
post closed!
The post/thread has been closed!
Requested by who1ssus#0

Did you find this page helpful?