Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oss-licenses-plugin causes Gradle deprecation warnings #166

Closed
mirabilos opened this issue Dec 28, 2020 · 1 comment · Fixed by #169
Closed

oss-licenses-plugin causes Gradle deprecation warnings #166

mirabilos opened this issue Dec 28, 2020 · 1 comment · Fixed by #169

Comments

@mirabilos
Copy link

mirabilos commented Dec 28, 2020

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

@caller9
Copy link
Collaborator

caller9 commented Apr 5, 2021

https://github.com/google/play-services-plugins/releases/tag/oss-licenses-plugin-v0.10.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants