Class OssIndexPluginExtension
java.lang.Object
org.sonatype.gradle.plugins.scan.ossindex.OssIndexPluginExtension
Extension for configuring the OSS Index audit task.
-
Constructor Summary
ConstructorsConstructorDescriptionOssIndexPluginExtension(org.gradle.api.Project project) Creates a new extension instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the cache directory.Returns the cache expiration.org.cyclonedx.model.Component.TypeReturns the CycloneDX component type.Returns the coordinates to exclude.Returns the vulnerability IDs to exclude.Returns the modules excluded.Returns the modules included.Returns the output format.Returns the password.org.sonatype.ossindex.service.client.transport.ProxyConfigurationReturns the proxy configuration.Returns the username.Returns the variant attributes.booleanReturns whether all configurations are included.booleanReturns whether color output is enabled.booleanReturns whether to exclude compile-only dependencies.booleanReturns whether to fail on vulnerability detection.booleanReturns whether to print the banner.booleanReturns whether to show all dependencies.booleanReturns whether a simulated vulnerability is found.booleanReturns whether simulation is enabled.booleanReturns whether the cache is enabled.voidsetAllConfigurations(boolean allConfigurations) Sets whether all configurations are included.voidsetCacheDirectory(String cacheDirectory) Sets the cache directory.voidsetCacheExpiration(String cacheExpiration) Sets the cache expiration.voidsetColorEnabled(boolean colorEnabled) Sets whether color output is enabled.voidsetCycloneDxComponentType(org.cyclonedx.model.Component.Type cycloneDxComponentType) Sets the CycloneDX component type.voidsetExcludeCompileOnly(boolean excludeCompileOnly) Sets whether to exclude compile-only dependencies.voidsetExcludeCoordinates(Set<String> excludeCoordinates) Sets the coordinates to exclude.voidsetExcludeVulnerabilityIds(Set<String> excludeVulnerabilityIds) Sets the vulnerability IDs to exclude.voidsetFailOnDetection(boolean failOnDetection) Sets whether to fail on vulnerability detection.voidsetModulesExcluded(Set<String> modulesExcluded) Sets the modules excluded.voidsetModulesIncluded(Set<String> modulesIncluded) Sets the modules included.voidsetOutputFormat(OutputFormat outputFormat) Sets the output format.voidsetPassword(String password) Sets the password.voidsetPrintBanner(boolean printBanner) Sets whether to print the banner.voidsetProxyConfiguration(groovy.lang.Closure<org.sonatype.ossindex.service.client.transport.ProxyConfiguration> closure) Sets the proxy configuration.voidsetShowAll(boolean showAll) Sets whether to show all dependencies.voidsetSimulatedVulnerabilityFound(boolean simulatedVulnerabilityFound) Sets whether a simulated vulnerability is found.voidsetSimulationEnabled(boolean simulationEnabled) Sets whether simulation is enabled.voidsetUseCache(boolean useCache) Sets whether the cache is enabled.voidsetUsername(String username) Sets the username.voidsetVariantAttributes(Map<String, String> variantAttributes) Sets the variant attributes.
-
Constructor Details
-
OssIndexPluginExtension
public OssIndexPluginExtension(org.gradle.api.Project project) Creates a new extension instance.
-
-
Method Details
-
getUsername
Returns the username. -
setUsername
Sets the username. -
getPassword
Returns the password. -
setPassword
Sets the password. -
isUseCache
public boolean isUseCache()Returns whether the cache is enabled. -
setUseCache
public void setUseCache(boolean useCache) Sets whether the cache is enabled. -
getCacheDirectory
Returns the cache directory. -
setCacheDirectory
Sets the cache directory. -
getCacheExpiration
Returns the cache expiration. -
setCacheExpiration
Sets the cache expiration. -
isAllConfigurations
public boolean isAllConfigurations()Returns whether all configurations are included. -
setAllConfigurations
public void setAllConfigurations(boolean allConfigurations) Sets whether all configurations are included. -
getModulesIncluded
Returns the modules included. -
setModulesIncluded
Sets the modules included. -
getModulesExcluded
Returns the modules excluded. -
setModulesExcluded
Sets the modules excluded. -
isSimulationEnabled
public boolean isSimulationEnabled()Returns whether simulation is enabled. -
setSimulationEnabled
public void setSimulationEnabled(boolean simulationEnabled) Sets whether simulation is enabled. -
isSimulatedVulnerabilityFound
public boolean isSimulatedVulnerabilityFound()Returns whether a simulated vulnerability is found. -
setSimulatedVulnerabilityFound
public void setSimulatedVulnerabilityFound(boolean simulatedVulnerabilityFound) Sets whether a simulated vulnerability is found. -
isColorEnabled
public boolean isColorEnabled()Returns whether color output is enabled. -
setColorEnabled
public void setColorEnabled(boolean colorEnabled) Sets whether color output is enabled. -
getProxyConfiguration
public org.sonatype.ossindex.service.client.transport.ProxyConfiguration getProxyConfiguration()Returns the proxy configuration. -
setProxyConfiguration
public void setProxyConfiguration(groovy.lang.Closure<org.sonatype.ossindex.service.client.transport.ProxyConfiguration> closure) Sets the proxy configuration. -
isShowAll
public boolean isShowAll()Returns whether to show all dependencies. -
setShowAll
public void setShowAll(boolean showAll) Sets whether to show all dependencies. -
isPrintBanner
public boolean isPrintBanner()Returns whether to print the banner. -
setPrintBanner
public void setPrintBanner(boolean printBanner) Sets whether to print the banner. -
isFailOnDetection
public boolean isFailOnDetection()Returns whether to fail on vulnerability detection. -
setFailOnDetection
public void setFailOnDetection(boolean failOnDetection) Sets whether to fail on vulnerability detection. -
getExcludeVulnerabilityIds
Returns the vulnerability IDs to exclude. -
setExcludeVulnerabilityIds
Sets the vulnerability IDs to exclude. -
getExcludeCoordinates
Returns the coordinates to exclude. -
setExcludeCoordinates
Sets the coordinates to exclude. -
getOutputFormat
Returns the output format. -
setOutputFormat
Sets the output format. -
getCycloneDxComponentType
public org.cyclonedx.model.Component.Type getCycloneDxComponentType()Returns the CycloneDX component type. -
setCycloneDxComponentType
public void setCycloneDxComponentType(org.cyclonedx.model.Component.Type cycloneDxComponentType) Sets the CycloneDX component type. -
getVariantAttributes
Returns the variant attributes. -
setVariantAttributes
Sets the variant attributes. -
isExcludeCompileOnly
public boolean isExcludeCompileOnly()Returns whether to exclude compile-only dependencies. -
setExcludeCompileOnly
public void setExcludeCompileOnly(boolean excludeCompileOnly) Sets whether to exclude compile-only dependencies.
-