Fix localToProject=public not set for K/N configurations, KT-48370

This commit is contained in:
Sergey Igushkin
2021-08-25 15:15:56 +03:00
committed by Space
parent 0213c25c9b
commit 8b37b5f259
2 changed files with 17 additions and 6 deletions
@@ -82,6 +82,7 @@ open class KotlinNativeTargetConfigurator<T : KotlinNativeTarget> : AbstractKotl
linkTask: TaskProvider<KotlinNativeLink>
) {
fun <T : Task> Configuration.configureConfiguration(taskProvider: TaskProvider<T>) {
setupAsPublicConfigurationIfSupported(binary.target)
project.afterEvaluate {
val task = taskProvider.get()
val artifactFile = when (task) {