Skip to content

biagiopietro/LicenseDialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HitCount JitPack lib_version GitHub forks GitHub issues GitHub license

LicenseDialog

LicenseDialog is an open source Java library, that allows you to show the license of the libraries used in your project inside a Material Design dialog.

Screenshot

Note

  • LicenseDialog requires Java 1.8u60 and above.
  • You need to set JAVA_HOME environment variable to point to Java 1.8 directory.

How to Include In Maven Project

Add JitPack in your repositories

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

Add LicenseDialog in your dependencies

<dependency>
    <groupId>com.github.biagiopietro</groupId>
    <artifactId>LicenseDialog</artifactId>
    <version>1.0.2</version>
</dependency>

How to use

    // Create License list
    List<License> licenseList = new ArrayList<>();
    // Add Licenses to the list
    licenseList.add(new License("Lib example", "https://www.google.com", "Copyright © example", License.licenseType.APACHE20));
    LicenseDialogController licenseDialogController = new LicenseDialogController();
    // Set the HostServices for the URL
    licenseDialogController.setHostServices(hostServices);
    licenseDialogController.setLicenseList(licenseList);
    licenseDialogController.setTitleStage("Open Source Libraries");
    licenseDialogController.setCloseButtonText("Close");
    licenseDialogController.setTitleInsideDialog("Libraries");
    licenseDialogController.showLicenseDialog();

Supported Licenses

  • Apache 2.0
  • MIT
  • LGPL 3.0
  • BSD 3-Clause

Issues

Issues can be reported to the Issue tracker. If you can't fix them yourself, please be patiente as I can only work on them during my spare time and according to my priorities.

Contributions

Contributions are welcome, they can be submitted via Pull requests.

Special Thanks

Special thanks to JetBrains for his beautiful IDEE IntelliJ IDEA and JFoenix for Material Design Components.