diff --git a/src/main/java/io/jenkins/infra/repository_permissions_updater/hosting/MavenVerifier.java b/src/main/java/io/jenkins/infra/repository_permissions_updater/hosting/MavenVerifier.java index bcb4b15461..d13e5903e4 100644 --- a/src/main/java/io/jenkins/infra/repository_permissions_updater/hosting/MavenVerifier.java +++ b/src/main/java/io/jenkins/infra/repository_permissions_updater/hosting/MavenVerifier.java @@ -522,6 +522,13 @@ private void checkProperties(Model model, HashSet hostingIs "Please define the property `hpi.strictBundledArtifacts` and set it to `true`. This should help prevent accidental library bundling when adding and updating dependencies." + "See [Bundling third-party libraries](https://www.jenkins.io/doc/developer/plugin-development/dependencies-and-class-loading/#bundling-third-party-libraries).")); } + if (!props.containsKey("ban-commons-lang-2.skip") + || !props.getProperty("ban-commons-lang-2.skip").equals("false")) { + hostingIssues.add(new VerificationMessage( + VerificationMessage.Severity.REQUIRED, + "Please define the property `ban-commons-lang-2.skip` and set it to `false`. This should help prevent accidental usage of the deprecated commons-lang-2 library that is " + + "included in core.")); + } } private void checkDependencies(Model model, HashSet hostingIssues) {