The neoforge.mods.toml used ${mod_version} as a placeholder, but the build.gradle had no processResources block to replace it with the actual value. So the
literal string ${mod_version} ended up in the jar, which NeoForge rejected as an invalid version number.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }