Skip to content

dependencyCheckAnalyze fails with layered modules #94

@mt-mitchell

Description

@mt-mitchell

If you have layered modules with version 3.3.1, you still get the `Could not resolve all artifacts for configuration ' error.

I forked the #71 sample project https://github.com/mt-mitchell/sample-dependency-check-app

I tried with and without productFlavors and the result is the same.

Execution failed for task ':mylibrary:dependencyCheckAnalyze'.
> Could not resolve all artifacts for configuration ':mylibrary:archives'.
   > Could not resolve project :mylibraryTransitive.
     Required by:
         project :mylibrary
      > Cannot choose between the following configurations of project :mylibraryTransitive:
          - debugApiElements
          - debugRuntimeElements
          - releaseApiElements
          - releaseRuntimeElements
        All of them match the consumer attributes:
          - Configuration 'debugApiElements':
              - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required.
              - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
              - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
              - Found org.gradle.usage 'java-api' but wasn't required.
          - Configuration 'debugRuntimeElements':
              - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required.
              - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
              - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
              - Found org.gradle.usage 'java-runtime' but wasn't required.
          - Configuration 'releaseApiElements':
              - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required.
              - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
              - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
              - Found org.gradle.usage 'java-api' but wasn't required.
          - Configuration 'releaseRuntimeElements':
              - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required.
              - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
              - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
              - Found org.gradle.usage 'java-runtime' but wasn't required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions