Package net.kyori.indra.api.model
Interface License
@Immutable
public interface License
License information for the current project.
- Since:
- 2.0.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Licenseapache2()Get an Apache 2.0 license instance.static @NotNull License.Builderbuilder()Create a builder to construct a custom license.static @NotNull Licensegpl3Only()Get a GPL-3.0-only license instance.static @NotNull LicenseGet a GPL-3.0-or-later license instance.static @NotNull LicenseGet an LGPL-3.0-only license instance.static @NotNull LicenseGet an LGPL-3.0-or-later license instance.static @NotNull Licensemit()Get an MIT license instance.static @NotNull Licensempl2()Get an MPL-2 license instance.@NotNull Stringname()Get the display name of this license.@Nullable Stringspdx()Get the SPDX identifier that describes this license.@NotNull Stringurl()Get a URL to the text of this license.
-
Method Details
-
builder
Create a builder to construct a custom license.- Returns:
- the license builder
- Since:
- 2.0.0
-
apache2
Get an Apache 2.0 license instance.- Returns:
- the Apache 2.0 license
- Since:
- 2.0.0
-
gpl3Only
Get a GPL-3.0-only license instance.- Returns:
- the GPL-3.0-only license
- Since:
- 2.0.0
-
gpl3OrLater
Get a GPL-3.0-or-later license instance.- Returns:
- the GPL-3.0-or-later license
- Since:
- 2.1.0
-
lgpl3Only
Get an LGPL-3.0-only license instance.- Returns:
- the LGPL-3.0-only license
- Since:
- 2.1.0
-
lgpl3OrLater
Get an LGPL-3.0-or-later license instance.- Returns:
- the LGPL-3.0-or-later license
- Since:
- 2.1.0
-
mit
Get an MIT license instance.- Returns:
- the MIT license
- Since:
- 2.0.0
-
mpl2
Get an MPL-2 license instance.- Returns:
- the MPL-2 license
- Since:
- 2.1.0
-
spdx
Get the SPDX identifier that describes this license.- Returns:
- spdx the license identifier
- Since:
- 2.0.0
-
name
Get the display name of this license.- Returns:
- the license display name
- Since:
- 2.0.0
-
url
Get a URL to the text of this license.- Returns:
- a URL pointing to this license text
- Since:
- 2.0.0
-