#for some reason my project wont build

50 messages · Page 1 of 1 (latest)

quick hinge
#


> Configure project :
Fabric Loom: 1.5.8

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

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

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

FAILURE: Build failed with an exception.

* Where:
Initialization script 'C:\Users\User\AppData\Local\Temp\net_fabricmc_devlaunchinjector_Main_main__2.gradle' line: 89

* What went wrong:
A problem occurred configuring root project 'foodextended'.
> Could not create task ':net.fabricmc.devlaunchinjector.Main.main()'.
   > Task with name 'clientJar' not found in root project 'foodextended'.

* 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 1s
18:13:34: Execution finished ':net.fabricmc.devlaunchinjector.Main.main()'.
#

this happened after i tried to update my project from 1.20.4 to 1.21 and then it stopped working, so i deleted .idea folder and rebuilt it and now it shows this

cold atlas
#

I advise you to upload the code (e.g. GitHub) so we may take a look

fluid magnet
fluid magnet
#

client since that's your client run config

quick hinge
fluid magnet
#

what are you doing to get your error?

quick hinge
#

running the client

#

it crashes when building

fluid magnet
#

are you using gradle runClient or the run config?

quick hinge
fluid magnet
#

yeah that should work

quick hinge
fluid magnet
#

yeah i know, idk why you're getting your error

#

you can always try running ./gradlew --refresh-dependencies and deleting .gradle

quick hinge
#

i renamed the folder with the project before, maybe something broke because of this

fluid magnet
#

you need to delete .gradle

quick hinge
#

how?

fluid magnet
#

the folder

#

also delete your run configs

#

then close intellij

quick hinge
#

okay

fluid magnet
#

then open and let gradle sync

quick hinge
#

same error

#

i will try to update gradle

#

btw, how do i update loom?

#

or is it unnecessary

quick hinge
fluid magnet
#

but you need to update gradle wrapper first

quick hinge
#

how

fluid magnet
#

gradle wrapper --gradle-version latest

#

or

#

./gradlew wrapper --gradle-version latest

quick hinge
# fluid magnet `./gradlew wrapper --gradle-version latest`
./gradlew wrapper --gradle-version

> Configure project :
Fabric Loom: 1.5.8

FAILURE: Build failed with an exception.

* What went wrong:
Problem configuring task :wrapper from command line.
> No argument was provided for command-line option '--gradle-version' with description: 'The version of the Gradle distribution required by the wrapper. The following labels are allowed: latest, release-candidate, nightly, and release-nightly.'

* Try:
> Run gradlew help --task :wrapper to get task usage details.
> 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 9.0.

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

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 1s```
#

first one doesnt work

fluid magnet
#

you didn't put latest

quick hinge
#

oh

#

updated

#

now what

#

oh

#

in gradle

#

i see

#


> Configure project :
Fabric Loom: 1.7.1

FAILURE: Build failed with an exception.

* Where:
Initialization script 'C:\Users\User\AppData\Local\Temp\net_fabricmc_devlaunchinjector_Main_main__1.gradle' line: 89

* What went wrong:
A problem occurred configuring root project 'foodextended'.
> Could not create task ':net.fabricmc.devlaunchinjector.Main.main()'.
   > Task with name 'clientJar' not found in root project 'foodextended'.

* 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 2s
11:14:33: Execution finished ':net.fabricmc.devlaunchinjector.Main.main()'.```
fluid magnet
#

did you modify your build script?

#

send build.gradle

quick hinge