Execution failed for task ':processResources'.
> Could not copy file 'J:\For Modding\For creating mods\Human Companions\src\main\resources\META-INF\mods.toml' to 'J:\For Modding\For creating mods\Human Companions\build\resources\main\META-INF\mods.toml'.
> Missing property (Human_Companions) for Groovy template expansion. Defined keys [minecraft_version, minecraft_version_range, forge_version, forge_version_range, loader_version_range, mod_id, mod_name, mod_license, mod_version, mod_authors, mod_description, project].
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --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.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 2s
2 actionable tasks: 2 executed
Watched directory hierarchies: [J:\For Modding\For creating mods\Human Companions]
I have been trying everything it keeps giving errors
I changed a few things and now my error is different.
Execution failed for task ':processResources'.
> Could not copy file 'J:\For Modding\For creating mods\Human Companions\src\main\resources\META-INF\mods.toml' to 'J:\For Modding\For creating mods\Human Companions\build\resources\main\META-INF\mods.toml'.
> Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:
SimpleTemplateScript8.groovy: 1: Unexpected input: '(' @ line 1, column 10.
out.print("""# This is an example mods.toml file. It contains the data relating to the loading mods.
^
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --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.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 875ms
2 actionable tasks: 1 executed, 1 up-to-date
Watched directory hierarchies: [J:\For Modding\For creating mods\Human Companions]
Your original message means you had $Human_Companions
somewhere in mods.toml
and use expand
on it without providing a value for Human_Companions
.
Your latest error means your mods.toml
is no longer a valid Groovy template as you have a (
where it is not expected.
thanks im slowly figuring it out.
1 Like