patjackson52
08/07/2020, 4:08 PMThe consumer was configured to find a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common'. However we cannot choose between the following variants of:
it then proceeds to list all of the variants. When looking at the module file there is only one artifact with type ‘org.jetbrains.kotlin.platform.type’ (the metadata module). Anyone else seeing this?"org.gradle.usage": "kotlin-api"
. So it is not matching both criteria (usage & type){
"name": "metadata-api",
"attributes": {
"org.gradle.usage": "kotlin-api",
"org.jetbrains.kotlin.platform.type": "common"
},
new 1.4.0-rc & gradle 6.5.1 module file:
{
"name": "metadata-api",
"attributes": {
"org.gradle.usage": "kotlin-metadata",
"org.jetbrains.kotlin.platform.type": "common"
},
So org.gradle.usage"
changed. I also have removed enableFeaturePreview(‘GRADLE_METADATA’) from settings.gradle as I though it was no longer needed. Going to attempt publishing with this enabled again.natario1
09/14/2020, 3:34 PMpatjackson52
09/17/2020, 8:39 PM