Package io.github.cdklabs.projen
Class License.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.License.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Licensebuild()License.BuildercopyrightOwner(String copyrightOwner)(experimental) Copyright owner.License.BuildercopyrightPeriod(String copyrightPeriod)(experimental) Period of license (e.g.static License.Buildercreate(Project project)License.Builderspdx(String spdx)(experimental) License type (SPDX).
-
-
-
Method Detail
-
create
@Stability(Experimental) public static License.Builder create(Project project)
- Parameters:
project- This parameter is required.- Returns:
- a new instance of
License.Builder.
-
spdx
@Stability(Experimental) public License.Builder spdx(String spdx)
(experimental) License type (SPDX).- Parameters:
spdx- License type (SPDX). This parameter is required.- Returns:
this- See Also:
- https://github.com/projen/projen/tree/main/license-text for list of supported licenses
-
copyrightOwner
@Stability(Experimental) public License.Builder copyrightOwner(String copyrightOwner)
(experimental) Copyright owner.If the license text has $copyright_owner, this option must be specified.
Default: -
- Parameters:
copyrightOwner- Copyright owner. This parameter is required.- Returns:
this
-
copyrightPeriod
@Stability(Experimental) public License.Builder copyrightPeriod(String copyrightPeriod)
(experimental) Period of license (e.g. "1998-2023").The string
$copyright_periodwill be substituted with this string.Default: - current year (e.g. "2020")
- Parameters:
copyrightPeriod- Period of license (e.g. "1998-2023"). This parameter is required.- Returns:
this
-
-