Posted February 21, 20205 yr Howdy I'm trying to tweak my build.gradle to add a new run configuration (to reduce the console debug level). It appears to generate the IDEA gradle tasks fine, but when I run it (clientfewerconsolemessages) it tells me "no main class specified". Any clues? I don't know much about Gradle so I'm hoping it's something obvious I'm missing. I have no idea why it automagically works for "client" but not "clientfewerconsolemessages" cheers TGG // Default run configurations. // These can be tweaked, removed, or duplicated as needed. runs { client { workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' mods { minecraftbyexample { source sourceSets.main } } } clientfewerconsolemessages { workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'warn' mods { minecraftbyexample { source sourceSets.main } } }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.