cookpad / LicenseToolsPlugin

Gradle plugin to check library licenses and generate license pages for Android
Apache License 2.0
175 stars 30 forks source link

Not working with okio 2.4.1 or later. #30

Open matsujun opened 4 years ago

matsujun commented 4 years ago

When I update okhttp from 4.2.2 to 4.4.1, following error happen when I run ./gradlew updateLicenses

Execution failed for task ':app:updateLicenses'.
> Could not resolve all files for configuration ':app:detachedConfiguration203'.
   > Could not resolve com.squareup.okio:okio:2.4.3.
     Required by:
         project :app
      > Cannot choose between the following variants of com.squareup.okio:okio:2.4.3:
          - jvm-api
          - jvm-runtime
          - metadata-api
        All of them match the consumer attributes:
          - Variant 'jvm-api' capability com.squareup.okio:okio:2.4.3:
              - Unmatched attributes:
                  - Found org.gradle.libraryelements 'jar' but wasn't required.
                  - Found org.gradle.status 'release' but wasn't required.
                  - Found org.gradle.usage 'java-api' but wasn't required.
                  - Found org.jetbrains.kotlin.platform.type 'jvm' but wasn't required.
          - Variant 'jvm-runtime' capability com.squareup.okio:okio:2.4.3:
              - Unmatched attributes:
                  - Found org.gradle.libraryelements 'jar' but wasn't required.
                  - Found org.gradle.status 'release' but wasn't required.
                  - Found org.gradle.usage 'java-runtime' but wasn't required.
                  - Found org.jetbrains.kotlin.platform.type 'jvm' but wasn't required.
          - Variant 'metadata-api' capability com.squareup.okio:okio:2.4.3:
              - Unmatched attributes:
                  - Found org.gradle.status 'release' but wasn't required.
                  - Found org.gradle.usage 'kotlin-api' but wasn't required.
                  - Found org.jetbrains.kotlin.platform.type 'common' but wasn't required.

other configurations

This looks very similar issue https://github.com/ben-manes/gradle-versions-plugin/issues/334

matsujun commented 4 years ago

This issue looks fixed on LicenseToolsPlugin : 1.2.2 (released today)

matsujun commented 4 years ago

Error is changed with LicenseToolsPlugin 1.2.2

Unable to retrieve license for com.squareup.okio:okio:2.4.3

checkLicenses is succeeded, but above error happen. okio is not exist on license.yaml