google / google/play-services-plugins
OSS Licenses Dependencies Always Absent
- Dominant language
- Kotlin
- Stars
- 526
- Forks
- 167
- Avg merge
- 7d 21h
- Merged PRs (30d)
- 2
Description
The generated dependencies.json file is always the default "absent" and as a result the dependency list is always the default "Debug License Info". I created a sample app and was able to get it working, but have not been able to get it working in my actual project, so there's clearly something different with my build file or something. My project has multiple flavor dimensions. I did add some some flavors to my sample as well. I did take time to make sure that the versions in the sample were the same as my project. They are listed below.
- Gradle version: 7.4
- Android Studio version [e.g. 3.1 (stable)]: Android Studio Dolphin | 2021.3.1 Patch 1
- Android Gradle Plugin version: 7.3.1
- Plugin name and version [e.g. OSS Licenses 16.0.0]: OSS Licenses 17.0.0
I did notice one difference between the behavior of the sample and my actual project. In the sample that works when I run the `fooReleaseOssDependencyTask` task there is a dependent task that runs called `collectFooReleaseDependencies`.
This "collect" task is not available in my project where I am getting empty dependencies. When I run my `flavorReleaseOssDependencyTask` in my project that has the issue I do not see a similar `collectFlavorReleaseDependencies` run. I also checked to see if it is available with `./gradlew :app:tasks --all` and it is not in the list. I am assuming that this collect task comes from the oss-license-plugin?
I wonder if this is some clue as to why my build might be different? Any thoughts or advice would be appreciated. I can also work on adding my build file but need to clean it up first. Thanks.
[build.gradle.kts.txt](https://github.com/google/play-services-plugins/files/10117073/build.gradle.kts.txt)
Contributor guide
Assessment
This issue has not been assessed yet.