Interface License


  • @Immutable
    public interface License
    License information for the current project.
    Since:
    2.0.0
    • Method Detail

      • builder

        static @NonNull License.Builder builder()
        Create a builder to construct a custom license.
        Returns:
        the license builder
        Since:
        2.0.0
      • apache2

        static @NonNull License apache2()
        Get an Apache 2.0 license instance.
        Returns:
        the Apache 2.0 license
        Since:
        2.0.0
      • gpl3Only

        static @NonNull License gpl3Only()
        Get a GPL-3.0-only license instance.
        Returns:
        the GPL-3.0-only license
        Since:
        2.0.0
      • mit

        static @NonNull License mit()
        Get a MIT license instance.
        Returns:
        the MIT license
        Since:
        2.0.0
      • spdx

        @Nullable String spdx()
        Get the SPDX identifier that describes this license.
        Returns:
        spdx the license identifier
        Since:
        2.0.0
      • name

        @NonNull String name()
        Get the display name of this license.
        Returns:
        the license display name
        Since:
        2.0.0
      • url

        @NonNull String url()
        Get a URL to the text of this license.
        Returns:
        a URL pointing to this license text
        Since:
        2.0.0