I'm seeing Gradle warnings for our kotlin gradle f...
# multiplatform
s
I'm seeing Gradle warnings for our kotlin gradle files in our code all over the place. Does anyone know a way to ignore logs like this for the entire project?
Variable 'commonMain' is never used
It comes from the unused sourcesets we have all over the place, which I think it's the common convention, is it not?:
Copy code
sourceSets {
        val commonMain by getting {
            dependencies {
            }
        }

        val jvmMain by getting {
            dependencies {
            }
        }

        val jvmTest by getting {
            dependencies {
            }
        }
    }
j
commonMain { }
named("jvmMain") { }
s
that's kind of an ugly solution. We'd like to stick with the convention of
by getting
and
by creating
.
j
I don’t think there is a better way than suppressing the warning with an annotation
j
You can create extension function like
commonMain
in an included build