'Gradle says that archivesBaseName is not a property

Build file 'C:\Users\Ilan\Desktop\Code\Minecraft Mods\MinecraftByExample-1-8-9final\build.gradle' line: 25

A problem occurred evaluating root project 'MinecraftByExample-1-8-9final'.
> Could not set unknown property 'archivesBaseName' for root project 'MinecraftByExample-1-8-9final' of type org.gradle.api.Project.

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

* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'MinecraftByExample-1-8-9final'.
    at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
    at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:133)
    at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:79)...

I'm running the newest Gradle version as of now, and Java 17



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source