GitHub Actions 1.3.3 fails to build after updating the calendar dependency from v0.6.0 to v1.0.0
Closed this issue ยท 8 comments
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkAlphaAarMetadata'.
> Could not resolve all files for configuration ':app:alphaRuntimeClasspath'.
> Could not resolve io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0.
Required by:
project :app
> No matching variant of io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'alpha', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- Variant 'debugVariantMavenApiPublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0:
> Task :app:checkAlphaAarMetadata FAILED
- Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'alpha'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'debugVariantMavenJavaDocPublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'alpha'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'debugVariantMavenRuntimePublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'alpha'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'debugVariantMavenSourcePublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'alpha'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'releaseVariantMavenApiPublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0:
- Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'alpha'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'releaseVariantMavenJavaDocPublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'alpha'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'releaseVariantMavenRuntimePublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'alpha'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'releaseVariantMavenSourcePublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'alpha'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org/
BUILD FAILED in 1m 26s
3 actionable tasks: 3 executed
Error: Process completed with exit code 1.
@GabrielGircenko Thank you for submitting the issue. Could you provide more details about the problem? E.g. in what context are you using the library, your versions of Compose and Kotlin? It's hard to deduce it from the description, and I was able to add version 1.0.0 to my other project no problem.
@boguszpawlowski Hi, about the same issue on my side while update to 1.0.0 version. JFI, releasing apk was succeed but not the aab.
kotlinCompilerExtensionVersion '1.3.2'
androidx.compose '1.2.1'
agp '7.3.1'
kotlin.android '1.7.20'
- What went wrong:
Execution failed for task ':app:checkProdUploadDuplicateClasses'.
Could not resolve all files for configuration ':app:prodUploadRuntimeClasspath'.
Could not resolve io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0.
Required by:
project :app
> No matching variant of io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'upload', attribute 'com.android.build.api.attributes.ProductFlavor:main' with value 'prod', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- Variant 'debugVariantMavenApiPublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0:
- Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'upload'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:main (required 'prod')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'debugVariantMavenJavaDocPublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'upload'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:main (required 'prod')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'debugVariantMavenRuntimePublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'upload'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:main (required 'prod')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'debugVariantMavenSourcePublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'upload'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:main (required 'prod')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'releaseVariantMavenApiPublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0:
- Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'upload'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:main (required 'prod')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'releaseVariantMavenJavaDocPublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'upload'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:main (required 'prod')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'releaseVariantMavenRuntimePublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'upload'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:main (required 'prod')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'releaseVariantMavenSourcePublication' capability io.github.boguszpawlowski.composecalendar:composecalendar:1.0.0 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'upload'
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.3.1')
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:main (required 'prod')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================
Ok, thanks for the info @Andranik-Asilbekyan I will look into it
Unfortunately, I was unable to reproduce the issue. However, I have found that after a bump of publishing plugin in 1.0.0, the structure of the artifact have changed. I will remove unnecessary aars from it and release it in 1.0.1. In the meantime @Andranik-Asilbekyan, @GabrielGircenko if you would be able to create sample project with the issue in order to properly test it, it would be much appreciated.
@boguszpawlowski here are my versions:
kotlinCompilerExtensionVersion '1.2.0'
compose_version '1.3.0-beta02'
gradle_version '7.3.1'
kotlin_version '1.7.0'
If I find time, I will create the test project.
@Andranik-Asilbekyan @GabrielGircenko Please test if it works correctly on 1.0.1
@boguszpawlowski verified!
@boguszpawlowski it works, thank you!