Adding the deprecation for delete old code location names
@@ -170,6 +170,10 @@ public class DetectConfiguration {
throw new DetectUserFriendlyException("The source path ${sourcePath} either doesn't exist, isn't a directory, or doesn't have appropriate permissions.", ExitCodeType.FAILURE_GENERAL_ERROR);
}
+ if(getProjectCodeLocationDeleteOldNames()){
+ warnings.addDeprecation("projectCodeLocationDeleteOldNames");
+ }
+
boolean atLeastOnePolicySeverity = StringUtils.isNotBlank(policyCheckFailOnSeverities);
if (atLeastOnePolicySeverity) {
if (policyCheck) {
@@ -619,6 +623,7 @@ public class DetectConfiguration {
@HelpDescription("A suffix to the name of the codelocations created by Detect.")
private String projectCodeLocationSuffix;
+ @ValueDeprecation(description = "We will no longer be tracking the code locations created by previous versions of Detect in 4.0.0. New properties will be added to handle code location deletion and unmapping.", willRemoveInVersion = "4.0.0")
@Value("${detect.project.codelocation.delete.old.names:}")
@DefaultValue("false")
@HelpGroup(primary = GROUP_PROJECT_INFO, additional = {SEARCH_GROUP_PROJECT})
