I ran into this same error, and managed to "fix" it by opening src/main/resources/META-INF/mods.toml, and replacing all mentions of ${mod_id} with grugmodloader, and replacing ${mod_version} with 1.0.0. You'll need to use the values that you have in your gradle.properties.