Skip to content

An example on how to scan a Java project with gradle build system for the used licenses and how to blacklist some of them

License

Notifications You must be signed in to change notification settings

renepanke/java-gradle-license-scan-example

Repository files navigation

Java Gradle License Scan Example

Acknowledgments to the plugin author

All functionality-wise credits go to github.com: jk1/Gradle-License-Report. This repository does only provide an example on how to use the plugin.


This repository holds a basic example for scanning a gradle project for licenses that can't be used in proprietary projects.

DISCLAIMER: THIS IS NOT LEGAL ADVICE NOR DOES THIS LIST CLAIM TO BE EXHAUSTIVE.

FEEL FREE TO OPEN A PULL REQUEST TO SUBMIT ADDITIONAL LICENSES THAT DO NOT REQUIRE TO DISCLOSE SOURCE CODE.

Executing the scan

You can execute the license scan by executing gradle checkLicense on the command line.

A report is generated under ${projectDir}/build/reports/dependency-license/index.html which can be opened with any browser.

Usage/Examples

Try adding the commented out projects and see the checkLicense task failing. Also have a look on the report.

About

An example on how to scan a Java project with gradle build system for the used licenses and how to blacklist some of them

Topics

Resources

License

Stars

Watchers

Forks

Languages