Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all gradle dependencies with their licences

I want to list all maven dependencies (including transitive ones) of my gradle build with their licenses. Is this possible with the IntelliJ gradle plugin? If yes, how? Alternatively a gradle command line instruction would be sufficient, too.

like image 970
Matthias Kricke Avatar asked Jun 18 '14 08:06

Matthias Kricke


People also ask

How do I know if Gradle dependency has new version?

Go to Android Studio -> Preferences -> Plugins (for Mac) and File -> Settings -> Plugins (for windows) and search “Check for Dependency updates plugin”. Install it and restart android studio. You will be able to see Dependencies tab on the right which will show if any dependency has a new update available.

What are dependencies in Gradle?

Dependencies refer to the things that supports in building your project, such as required JAR file from other projects and external JARs like JDBC JAR or Eh-cache JAR in the class path. Publications means the outcomes of the project, such as test class files, build files and war files.


2 Answers

I would recommend the license-gradle-plugin. It can report on licenses from your dependencies via the downloadLicense task.

like image 186
Justin Ryan Avatar answered Oct 08 '22 23:10

Justin Ryan


For anybody who ends up here and discovered the license-gradle-plugin appears to be unmaintained, Gradle-License-Report works for this need as well.

like image 40
Stevi Deter Avatar answered Oct 08 '22 23:10

Stevi Deter