gradle - pivotal/LicenseFinder 为 Gradle 项目返回 "No d

我有一个 android 项目,我想在其中使用 license_finder 为我的应用程序生成许可证报告。

我已按照 pivotal/LicenseFinder 中的说明进行操作并有一个看起来像这样的 build.gradle 文件

plugins {
    id "com.github.hierynomus.license-report" version"0.15.0"
}

...

downloadLicenses {
    dependencyConfiguration "compile"
}


由于使用 gem 安装了 license_finder 并配置了 build.gradle,我现在运行 lincense_finder 并得到以下错误

[admin@localhost android-client]$ license_finder
LicenseFinder::Gradle: is active

No dependencies recognized!

我怎样才能让它工作?

最佳答案

您应该添加以下行:

apply plugin: "com.github.hierynomus.license"

关于gradle - pivotal/LicenseFinder 为 Gradle 项目返回 "No dependencies recognized!",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58923967/

相关文章:

android-studio - 为什么我只看到官方 android 类的反编译源代码?

matplotlib - 如何在 seaborn 中有一个带有暗网格背景的透明图形?

heroku - 在 Heroku 管道中批量设置环境变量

react-native - 从选项卡导航选项卡打开抽屉导航

azure - 从 Azure 部署中排除 Azure Function 中的文件

amazon-web-services - 状态机忽略阶跃函数错误

python - 鼠兔连接丢失 Error : pika. exceptions.StreamLos

pycharm - 文件级无检查 PyCharm

typescript - 如何使用 TestCafe 在失败时截屏

tensorflow - 如何将学习从 tensorflow 1.14 转移到 tf 2?