@@ -51,22 +51,23 @@ private static void verifyParentExternalReferences(File projDir) {
5151 assertExternalReferences (bomJsonFile , "chat" , "url" , singleton ("https://acme.com/parent" ));
5252 assertExternalReferences (bomJsonFile , "website" , "url" , singleton ("https://cyclonedx.org/acme" ));
5353 assertExternalReferences (bomJsonFile , "vcs" , "url" , singleton ("https://github.com/CycloneDX/cyclonedx-maven-plugin.git" ));
54- verifyCommonExternalReferences (bomJsonFile );
54+ verifyCommonExternalReferences (bomJsonFile , false );
5555 }
5656
5757 private static void verifyChildExternalReferences (File projDir ) {
5858 File bomJsonFile = new File (projDir , "child/target/bom.json" );
5959 assertExternalReferences (bomJsonFile , "chat" , "url" , asList ("https://acme.com/parent" , "https://acme.com/child" ));
6060 assertExternalReferences (bomJsonFile , "website" , "url" , singleton ("https://cyclonedx.org/acme/child" ));
6161 assertExternalReferences (bomJsonFile , "vcs" , "url" , singleton ("https://github.com/CycloneDX/cyclonedx-maven-plugin.git/child" ));
62- verifyCommonExternalReferences (bomJsonFile );
62+ verifyCommonExternalReferences (bomJsonFile , true );
6363 }
6464
65- private static void verifyCommonExternalReferences (File bomJsonFile ) {
65+ private static void verifyCommonExternalReferences (File bomJsonFile , boolean child ) {
6666 assertExternalReferences (bomJsonFile , "chat" , "comment" , singleton ("optional comment" ));
6767 assertExternalReferences (bomJsonFile , "release-notes" , "url" , singleton ("https://github.com/CycloneDX/cyclonedx-maven-plugin/releases" ));
6868 assertExternalReferences (bomJsonFile , "build-system" , "url" , singleton ("https://github.com/CycloneDX/cyclonedx-maven-plugin/actions" ));
69- assertExternalReferences (bomJsonFile , "distribution" , "url" , singleton ("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" ));
69+ // CycloneDX 1.4 supports distribution only, 1.5 replaces with distribution-intake
70+ assertExternalReferences (bomJsonFile , child ? "distribution" : "distribution-intake" , "url" , singleton ("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" ));
7071 assertExternalReferences (bomJsonFile , "issue-tracker" , "url" , singleton ("https://github.com/CycloneDX/cyclonedx-maven-plugin/issues" ));
7172 assertExternalReferences (bomJsonFile , "mailing-list" , "url" , singleton ("https://dev.ml.cyclonedx.org/archive" ));
7273 }
0 commit comments