Class LicenseChecker.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.LicenseChecker.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LicenseChecker>
- Enclosing class:
- LicenseChecker
@Stability(Experimental) public static final class LicenseChecker.Builder extends Object implements software.amazon.jsii.Builder<LicenseChecker>
(experimental) A fluent builder forLicenseChecker.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseChecker.Builderallow(List<String> allow)(experimental) List of SPDX license identifiers that are allowed to be used.LicenseCheckerbuild()static LicenseChecker.Buildercreate(software.constructs.Construct scope)LicenseChecker.Builderdeny(List<String> deny)(experimental) List of SPDX license identifiers that are prohibited to be used.LicenseChecker.Builderdevelopment(Boolean development)(experimental) Check development dependencies.LicenseChecker.Builderproduction(Boolean production)(experimental) Check production dependencies.LicenseChecker.BuildertaskName(String taskName)(experimental) The name of the task that is added to check licenses.
-
-
-
Method Detail
-
create
@Stability(Experimental) public static LicenseChecker.Builder create(software.constructs.Construct scope)
- Parameters:
scope- This parameter is required.- Returns:
- a new instance of
LicenseChecker.Builder.
-
allow
@Stability(Experimental) public LicenseChecker.Builder allow(List<String> allow)
(experimental) List of SPDX license identifiers that are allowed to be used.For the license check to pass, all detected licenses MUST be in this list. Only one of
allowedLicensesandprohibitedLicensescan be provided and must not be empty.Default: - no licenses are allowed
- Parameters:
allow- List of SPDX license identifiers that are allowed to be used. This parameter is required.- Returns:
this
-
deny
@Stability(Experimental) public LicenseChecker.Builder deny(List<String> deny)
(experimental) List of SPDX license identifiers that are prohibited to be used.For the license check to pass, no detected licenses can be in this list. Only one of
allowedLicensesandprohibitedLicensescan be provided and must not be empty.Default: - no licenses are prohibited
- Parameters:
deny- List of SPDX license identifiers that are prohibited to be used. This parameter is required.- Returns:
this
-
development
@Stability(Experimental) public LicenseChecker.Builder development(Boolean development)
(experimental) Check development dependencies.Default: false
- Parameters:
development- Check development dependencies. This parameter is required.- Returns:
this
-
production
@Stability(Experimental) public LicenseChecker.Builder production(Boolean production)
(experimental) Check production dependencies.Default: true
- Parameters:
production- Check production dependencies. This parameter is required.- Returns:
this
-
taskName
@Stability(Experimental) public LicenseChecker.Builder taskName(String taskName)
(experimental) The name of the task that is added to check licenses.Default: "check-licenses"
- Parameters:
taskName- The name of the task that is added to check licenses. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public LicenseChecker build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LicenseChecker>- Returns:
- a newly built instance of
LicenseChecker.
-
-