license-gradle-plugin | Manage your license | Plugin library
kandi X-RAY | license-gradle-plugin Summary
kandi X-RAY | license-gradle-plugin Summary
This plugin will scan and adapt your source files to include a provided header, e.g. a LICENSE file. By default it will scan every source set and report warnings. It will also create format tasks, which will properly format and apply the specified header. A bulk of the logic comes from the maven-license-plugin. This plugin will also report on the licenses of your dependencies.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of license-gradle-plugin
license-gradle-plugin Key Features
license-gradle-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on license-gradle-plugin
QUESTION
I need to get a list of all dependencies and their licenses.
I’ve tried a couple of plugins thus far but they are in various states of not working…
- hierynomus/license-gradle-plugin doesn’t appear to detect any dependencies.
- dorkbox/Licensing fails with some cryptic Kotlin error.
It seems like my best option might be to generate the maven pom.xml and call the maven license plugin…
Any suggestions?
...ANSWER
Answered 2021-May-05 at 14:22Issue
The problem is that plugin (hierynomus/license-gradle-plugin) by default takes dependency configuration that is not resolvable. There are some issues opened in the github repository.
- https://github.com/hierynomus/license-gradle-plugin/issues/182
- https://github.com/hierynomus/license-gradle-plugin/issues/181
- https://github.com/hierynomus/license-gradle-plugin/issues/174
It seems latest Gradle version or this plugin version broke something. I expect a solution soon..
Here is the topic about resolvable dependencies in Gradle documentation
Solution
A workaround to get your report is following.
- Apply the plugin
- Configure for which type of dependencies you want to have generated report. For example for Java project those configurations can be compileClasspath or runtimeClasspath.
Exmaple of the build script below (in Groovy)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install license-gradle-plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page