Skip to content

Configuration issue on version 0.10.8 of oss-licenses-plugin #330

@patrickfeltes

Description

@patrickfeltes

Describe the bug

Updated versions this morning and saw this error when trying to run ./gradlew clean

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':app:debugOssLicensesCleanUp' (type 'LicensesCleanUpTask').
  - In plugin 'com.google.android.gms.oss-licenses-plugin' type 'com.google.android.gms.oss.licenses.plugin.LicensesCleanUpTask' property 'generatedDirectory' specifies directory '/Users/.../app/build/generated/third_par.

    Reason: An input file was expected to be present but it doesn't exist.

    Possible solutions:
      1. Make sure the directory exists before the task is called.
      2. Make sure that the task which produces the directory is declared as an input.

    For more information, please refer to https://docs.gradle.org/8.13/userguide/validation_problems.html#input_file_does_not_exist in the Gradle documentation.

To Reproduce
Steps to reproduce the behavior:

  1. Run ./gradlew clean

Expected behavior
./gradlew clean should work

Desktop (please complete the following information):

  • Gradle version: 8.13, AGP version 8.11
  • Android Studio version: Android Studio Narwhal Feature Drop | 2025.1.2 Patch 1
  • Plugin name and version: OSS licenses 0.10.8

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