grv87 / gradle-prerequisites-plugin

Provides prerequisites lifecycle to Gradle
Apache License 2.0
0 stars 0 forks source link

Variant 'apiElements' does not match the consumer attributes #10

Open grv87 opened 5 years ago

grv87 commented 5 years ago

In gradle-packer-plugin:

api project(path: ':engine', configuration: 'apiElements')

gradlew updatePrerequisites --write-locks leads to:

Execution failed for task ':packer:updateGradleBuildTools'.
> Could not resolve all files for configuration ':packer:functionalTestRuntimeClasspath'.
   > Could not resolve project :engine.
     Required by:
         project :packer
      > Variant 'apiElements' in project :engine does not match the consumer attributes
        Variant 'apiElements': Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.