Closed guillermo-varela closed 3 years ago
What about the <Project>
tag? see this for example for multi-module
https://github.com/sonatype/hosted-data-services/blob/e24efe26182a5022ccbc61ad5447cbf8f3115555/insight-scan-processor/src/test/resources/scandata/ApplicationScanProcessorTest/scan-dep-graph-multi-module.xml#L33
I believe you need to create a ModuleScanRequest somewhere ? https://github.com/sonatype/clm-maven-plugin/blob/98c90e5d1f12a0b3a1d414602304d819cc895bd9/clm-maven-plugin/src/main/java/com/sonatype/insight/maven/AbstractClmScanMojo.java#L80
I believe you need to create a ModuleScanRequest somewhere ? https://github.com/sonatype/clm-maven-plugin/blob/98c90e5d1f12a0b3a1d414602304d819cc895bd9/clm-maven-plugin/src/main/java/com/sonatype/insight/maven/AbstractClmScanMojo.java#L80
This plugin uses nexus-java-api
which creates a ModuleScanRequest
instance internally based on the list of modules passed as param:
What about the
<Project>
tag? see this for example for multi-module https://github.com/sonatype/hosted-data-services/blob/e24efe26182a5022ccbc61ad5447cbf8f3115555/insight-scan-processor/src/test/resources/scandata/ApplicationScanProcessorTest/scan-dep-graph-multi-module.xml#L33
nexus-java-api
already handles that case for multi-module projects
When the dependencies list is present in the module, a
<dependencies>
entry is added in the scan XML file generated by IQ libraries:Setup for demo
gradle-producer
was scanned using IQ with lots of dependencies (acts as the InnerSource producer).gradle-consumer
depends ongradle-producer
directly and contains another direct dependencycom.squareup.retrofit2 : retrofit : 2.9.0
(which brings two transitive dependencies).Scanning
gradle-consumer
before this PRgradle-producer
is shown as an unknown component and all transitive dependencies are blended together.Scanning
gradle-consumer
after this PRgradle-producer
is shown as a known InnerSource component and the transitive dependencies it brings are grouped below this component to differentiate them from the ones related togradle-consumer
.cc @bhamail / @DarthHater / @shaikhu