Jan Skrasek
02/09/2022, 9:16 AMconfigurations
.configureEach {
incoming.afterResolve {
dependencies.forEach { dependency ->
if (dependency.name == "eithernet") {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
@Suppress("SuspiciousCollectionReassignment")
freeCompilerArgs += "-Xopt-in=com.slack.eithernet.ExperimentalEitherNetApi"
}
}
}
}
}
}
I've spent two days resolving the transitive deps but still failing to do it properly anyhow. Any idea?Vampire
02/09/2022, 11:12 AMdependencies.forEach
which only gives you the declared dependencies you need the resolution result, so something like resolutionResult.allDependencies
.