Slackbot
05/04/2023, 1:30 PMChris Lee
05/04/2023, 1:48 PMBenoît
05/04/2023, 2:10 PMval depsToAdd = configuration.dependencies.mapNotNull {
val bom = when (group) {
"com.squareup.okio" -> "com.squareup.okio:okio-bom:3.3.0"
else -> return@mapNotNull null
}
project.dependencies.platform(bom)
}
configuration.dependencies.addAll(depsToAdd)
Chris Lee
05/04/2023, 2:10 PMBenoît
05/04/2023, 2:29 PM> Could not find com.squareup.okio:okio:.
like if the platform
wasn’t thereBenoît
05/04/2023, 2:30 PMephemient
05/04/2023, 3:20 PMdependencies {
configurations.all {
withDependencies {
if (any { it.group == "com.squareup.okio" }) {
add(create("com.squareup.okio:okio-bom:3.3.0"))
}
}
}
}
Benoît
05/04/2023, 3:20 PMplatform
?ephemient
05/04/2023, 3:21 PMBenoît
05/04/2023, 3:22 PMBenoît
05/12/2023, 12:27 PM