Search code examples
javaapachegradlenetbeansmifos

Files with unapproved/unknown licenses when running a gradle project


I'm trying to run this API: GitHub link as a gradle project in Netbeans. When I build, it fails with this error: Found 1715 files with unapproved/unknown licenses.

I would appreciate if you could help me.

build errors


Solution

  • The rat tasks functionality seems to be implemented by the Apache RAT (Release Audit Tool) Gradle Plugin. I do not know or use the plugin, but according to its documentation, the task provides a failOnError property, which defaults to true. In the project you linked, the configuration closure for the rat task does not change the value of this property. By disabling the automatic failure you should be able to successfully run the build.