Skip to content

Commit

Permalink
Generate dependency whitelist report (#9909)
Browse files Browse the repository at this point in the history
* Generate dependency whitelist report

* Add versioning tag

* Include perf test core and storage perf test in ignore list
  • Loading branch information
srnagar authored Apr 7, 2020
1 parent 38a2980 commit 868667e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eng/code-quality-reports/src/main/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,10 @@ <h2>Azure Java SDK</h2>
<ion-icon name="ribbon"></ion-icon>
<a href="test-coverage/index.html" target="_blank" class="links">Test coverage (Aggregate)</a>
</li>
<li class="list-group-item sub-component">
<ion-icon name="copy"></ion-icon>
<a href="staging/dependency-whitelist.json" target="_blank" class="links">Dependency Whitelist (Aggregate)</a>
</li>
</div>
</ul>

Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/aggregate-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
- pwsh: |
copy -r target/staging $(Build.ArtifactStagingDirectory)
copy dependency-whitelist.json (Join-Path $(Build.ArtifactStagingDirectory) "staging")
copy eng/code-quality-reports/src/main/resources/index.html $(Build.ArtifactStagingDirectory)
copy output/pom.client.html (Join-Path $(Build.ArtifactStagingDirectory) "staging")
copy eng/common/InterdependencyGraph.html (Join-Path $(Build.ArtifactStagingDirectory) "staging")
Expand Down
1 change: 1 addition & 0 deletions eng/versioning/external_dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ io.dropwizard.metrics:metrics-jvm;4.0.5
io.reactivex.rxjava2:rxjava;2.2.4
net.java.dev.jna:jna-platform;5.4.0
net.jonathangiles.tools:dependencyChecker-maven-plugin;1.0.4
net.jonathangiles.tools:whitelistgenerator-maven-plugin;1.0.1
org.apache.commons:commons-collections4;4.2
org.apache.commons:commons-lang3;3.8.1
org.apache.commons:commons-text;1.6
Expand Down
27 changes: 27 additions & 0 deletions pom.client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,33 @@
</executions>
</plugin>

<plugin>
<groupId>net.jonathangiles.tools</groupId>
<artifactId>whitelistgenerator-maven-plugin</artifactId>
<version>1.0.1</version> <!-- {x-version-update;net.jonathangiles.tools:whitelistgenerator-maven-plugin;external_dependency} -->
<executions>
<execution>
<id>generateWhitelistReport</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<baseDir>.</baseDir>
<reportFile>dependency-whitelist.json</reportFile>
<ignoredGA>
<param>com.azure:azure-cosmos-examples</param>
<param>com.azure:azure-cosmos-benchmark</param>
<param>com.azure:azure-core-test</param>
<param>com.azure:azure-e2e</param>
<param>com.azure:azure-storage-perf</param>
<param>com.azure:perf-test-core</param>
</ignoredGA>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down

0 comments on commit 868667e

Please sign in to comment.