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
Javier
04/18/2023, 12:59 AM
commonMain { }
named("jvmMain") { }
s
spierce7
04/18/2023, 1:00 AM
that's kind of an ugly solution. We'd like to stick with the convention of
by getting
and
by creating
.
j
Johann Pardanaud
04/18/2023, 1:14 AM
I don’t think there is a better way than suppressing the warning with an annotation