Skip to content

oss-licenses-plugin causes Gradle deprecation warnings #166

@mirabilos

Description

@mirabilos

Describe the bug

oss-licenses-plugin causes Gradle deprecation warnings.

To Reproduce
Steps to reproduce the behavior:

  1. Have a working Android project with Gradle 5.6.4 and the oss-licenses-plugin
  2. Update to Gradle 6.7.1
  3. See warnings

Expected behavior

No build warnings.

Screenshots

I’m only including the warnings I don’t get with the oss-licenses-plugin commented out:

$ ./gradlew --warning-mode all lint

[…]
> Task :app:getDependencies
Type 'DependencyTask': field 'configurations' without corresponding getter has been annotated with @Input. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.7.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Type 'DependencyTask': field 'outputDir' without corresponding getter has been annotated with @OutputDirectory. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.7.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Type 'DependencyTask': field 'outputFile' without corresponding getter has been annotated with @OutputFile. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.7.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.

> Task :app:generateLicenses UP-TO-DATE
Type 'LicensesTask': field 'dependenciesJson' without corresponding getter has been annotated with @InputFile. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.7.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Type 'LicensesTask': field 'outputDir' without corresponding getter has been annotated with @OutputDirectory. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.7.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Type 'LicensesTask': field 'licenses' without corresponding getter has been annotated with @OutputFile. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.7.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Type 'LicensesTask': field 'licensesMetadata' without corresponding getter has been annotated with @OutputFile. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.7.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.

Desktop (please complete the following information):

  • Gradle version: 6.7.1
  • Android Studio version [e.g. 3.1 (stable)]: IntelliJ IDEA Ultimate 2020.3
  • Plugin name and version [e.g. OSS Licenses 16.0.0]: com.google.android.gms:oss-licenses-plugin:0.10.2

Additional context

This is independent of the IDE.

Affected project: android/ subdirectory of https://github.com/tarent/ECN-Bits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions