Jump to content

adding build.gradle run configurations (1.15.2)


TheGreyGhost

Recommended Posts

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
                    }
                }
            }
 

 

gradletasks.png.35e326bf3b7d5dd673c771b4738d720c.pnggradleTaskFewerMessages.png.86e910b12a1f10b8dc44a0ae220ba828.png

 

 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.