I found the issue, it was because of a change to how i impose my platforms, i changed it from imposing them on just the implementation configuration, i impose them on all configurations. So this includes the
kotlinCompilerClasspath
configuration, which messed things up. So now i filter it out.
Before: (broken)
DependencyHandlerScope.of(dependencies).let { dependencyHandlerScope ->
configurations.all {
dependencyHandlerScope.add(
name,
dependencyHandlerScope.platform("com.me.infra:me-starter-parent:$infraPlatform")
)
dependencyHandlerScope.add(
name,
dependencyHandlerScope.platform("<http://com.me:platform:$platform|com.me:platform:$platform>")
)
}
}
After: (works)
DependencyHandlerScope.of(dependencies).let { dependencyHandlerScope ->
configurations.filter { it.name != "kotlinCompilerClasspath" }.forEach {
dependencyHandlerScope.add(
it.name,
dependencyHandlerScope.platform("com.me.infra:me-starter-parent:$infraPlatform")
)
dependencyHandlerScope.add(
it.name,
dependencyHandlerScope.platform("<http://com.me:platform:$platform|com.me:platform:$platform>")
)
}
}
@Sam thanks for your advice