Package net.kyori.indra.api.model
Interface License
-
@Immutable public interface LicenseLicense information for the current project.- Since:
- 2.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceLicense.BuilderA builder forLicenses.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static @NonNull Licenseapache2()Get an Apache 2.0 license instance.static @NonNull License.Builderbuilder()Create a builder to construct a custom license.static @NonNull Licensegpl3Only()Get a GPL-3.0-only license instance.static @NonNull Licensemit()Get a MIT license instance.@NonNull Stringname()Get the display name of this license.@Nullable Stringspdx()Get the SPDX identifier that describes this license.@NonNull Stringurl()Get a URL to the text of this license.
-
-
-
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
-
-