https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

GarouDan

04/06/2019, 1:41 AM
Hi folks, I’m receiving an error like this one when trying to run a
publishToMavenLocal
task of mine:
Copy code
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':myLibrary:generateMetadataFileForMyLibraryIosX64Publication'.
...
Caused by: java.lang.ClassCastException: org.jetbrains.kotlin.gradle.plugin.mpp.HierarchyAttributeContainer cannot be cast to org.gradle.api.internal.attributes.AttributeContainerInternal
Would you have any clue as to what might cause this? I’m using a configuration like:
compilations["main"].outputKinds("framework")
but even if I disable it I receive the same error
l

louiscad

04/06/2019, 9:22 AM
Which Kotlin and Gradle versions are you using?
g

GarouDan

04/06/2019, 11:24 AM
I’m using Kotlin
1.3.21
and Gradle
5.2.1
l

louiscad

04/06/2019, 12:54 PM
@GarouDan Please, try with Gradle 5.1.1 or with Kotlin 1.3.30-eap-125 (or later when a new #eap version is out)
2 Views