Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Troubleshooting Gradle & permitted_licenses command

29 views
Skip to first unread message

Devon D'Apuzzo

unread,
Jan 13, 2020, 11:50:01 AM1/13/20
to license...@googlegroups.com
Hey License Finder team!

I'm working on a Labs project and we're trying to pull in License Finder.
Our application is a Kotlin Spring Boot web app with the frontend written
in Angular.

We're having 2 issues with License FInder right now.
Versions:
License Finder: 5.11.1
Ruby: ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin18]
OSx: Mojave 10.14.6
Gradle: 5.6.2

1) We cannot get the permitted_licenses command to execute.

=C2=B1  |master {11} S:1 U:2 =E2=9C=97| =E2=86=92 license_finder permitted_=
licenses add MIT
Could not find command "permitted_licenses".
Deprecation warning: Thor exit with status 0 on errors. To keep this
behavior, you must define `exit_on_failure?` in `LicenseFinder::CLI::Main`
You can silence deprecations warning by setting the environment variable
THOR_SILENCE_DEPRECATION.


2) The documentation for LicenseFinder says that we need this gradle plugin
to be able to produce a report of our dependencies first (
https://github.com/hierynomus/license-gradle-plugin). When we install the
plugin and generate the report we get an empty result, our dependency-json
file contains {"dependencies":[]}.

We saw that this is occuring for someone else (
https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_questions_55397312_got-2Dempty-2Dlicense-2Dreports-2Dwith-3D&d=DwIBaQ&c=lnl9vOaLMzsy2niBC8-h_K-7QJuNJEsFrzdndhuJ3Sw&r=Ny1aWar97N7AOwi7n8s13nrGs5UxAPy9IQqcvjV6ORw&m=CRTQRgSieKS0oGN_BqtlkrTcUZqAuBs1Poe_Vv0hrhw&s=UUQq9Sf2MoCgbgICZQnt3UwE8HTPPSDfn7hv0IateFo&e=
-hierynomus-gradle-license-plugin
).

We did try using the parameters:
dependencyConfiguration =3D "compile"
dependencyConfiguration =3D "test"
dependencyConfiguration =3D "implementation"

Have you all seen this? Do you have any workarounds for Java projects?

Thanks for your help!
-Devon

Reply all
Reply to author
Forward
0 new messages