Build failed, jar file didnt created

I need to build baritone addon for Meteor Client, but it failed

FAILURE: Build failed with an exception.

* What went wrong:
java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to create Jar file C:\Users\snowy\.gradle\caches\jars-9\5090e7224693032ae7280d6cfdfac6e9\buildSrc.jar.

Please, help me


I’m not a programmer and this is the first time I’m trying to make a build. I don’t understand anything about this, I did everything according to the guide on YouTube, but I caught an error, help me please :pleading_face::pleading_face::pleading_face:

Please never anywhere share screenshots of text if you only want to share the text and not something additional like colors or IDE annotations. Text in images is hard to read, especially on mobile, very hard to copy, and nearly impossible to search for.

Besides that, the error tells you how to get more information, did you do that?
If not, why not?
If yes, why did you not share the information?
Especially the --stacktrace or optimally a build --scan URL.

* 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 33s
2 actionable tasks: 2 executed

C:\Users\snowy\OneDrive\Desktop\baritone-1.10.2>--stacktrace
"--stacktrace" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

C:\Users\snowy\OneDrive\Desktop\baritone-1.10.2>sracktrace
"sracktrace" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

C:\Users\snowy\OneDrive\Desktop\baritone-1.10.2>stacktrace
"stacktrace" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

C:\Users\snowy\OneDrive\Desktop\baritone-1.10.2>scan
"scan" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

C:\Users\snowy\OneDrive\Desktop\baritone-1.10.2>--scan
"--scan" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

C:\Users\snowy\OneDrive\Desktop\baritone-1.10.2>/scan
"/scan" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

C:\Users\snowy\OneDrive\Desktop\baritone-1.10.2>scan
"scan" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

C:\Users\snowy\OneDrive\Desktop\baritone-1.10.2>--scan
"--scan" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

C:\Users\snowy\OneDrive\Desktop\baritone-1.10.2>

It dont give me do --scan or --stacktrace :sob::sob::sob:

o_O
Did you ever use any commandline tool before?
Those are parameters to the Gradle call just as the original error suggested, not own commands.

Sorry, I don’t know it at all, and I open terminal for the first time, so I don’t know how to use --scan and others, besides I know English very badly and I use translator​:sob::sob::sob::sob:, better give me step by step instruction please :sob::sob::sob::sob::sob::sob:

As I said, it is a parameter to the Gradle invocation, so do the original command and add the --scan.

1 Like

Build Scan® | Develocity YESSS I DID IT!! this is scan!!

if anything, I’m off to bed, I’ll answer tomorrow ^-^

You are running a Gradle 8.2 build with Java 21, this is not supported: Compatibility Matrix

1 Like