Disable Gradle warnings for submodule

How do you disable Gradle warnings for a submodule?

I have this in my build.gradle

dependencies {
    compile project('SpongeAPI')

and this in my settings.gradle

include 'SpongeAPI'
project(':SpongeAPI').projectDir = file('libs/SpongeAPI')

My build trace keeps getting spammed with warnings from SpongeAPI on .* imports, Vector3D or line that are too long.

it appears that using -x :SpongeApi:check on the command line does that just fine but i was wondering how to specify that in my build settings.