Initial Dependency Update Reports

This commit is contained in:
Joakim Erdfelt 2023-03-08 15:12:28 -06:00
parent 0099491435
commit d66058732f
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
5 changed files with 131 additions and 0 deletions

3
.gitignore vendored
View File

@ -49,3 +49,6 @@ bin/
# test generated content
*/src/test/*/WEB-INF/lib/test*.jar
.flattened-pom.xml
# reports
reports/

View File

@ -0,0 +1,34 @@
#!/usr/bin/env bash
echo "# This script is meant to be run from the root of the project"
echo "[jetty.project-12.0.0x]$ build/scripts/dependency-updates-report.sh"
PWD=$(pwd)
REPORT_OUTPUT_DIR=$PWD/reports/dependency-update-reports/
if [ -d $REPORT_OUTPUT_DIR ] ; then
rm -rf $REPORT_OUTPUT_DIR/*
fi
mkdir -p $REPORT_OUTPUT_DIR
echo "HTML Reports can be found in $REPORT_OUTPUT_DIR"
mvn -N -Pdependency-updates-reports validate
cp -Rv target/site/* $REPORT_OUTPUT_DIR
mv $REPORT_OUTPUT_DIR/dependency-updates-aggregate-report.html $REPORT_OUTPUT_DIR/dependency-updates-report-root.html
pushd jetty-ee10
mvn -Pdependency-updates-reports validate
cp target/site/dependency-updates-aggregate-report.html $REPORT_OUTPUT_DIR/dependency-updates-report-ee10.html
pushd jetty-ee9
mvn -Pdependency-updates-reports validate
cp target/site/dependency-updates-aggregate-report.html $REPORT_OUTPUT_DIR/dependency-updates-report-ee9.html
pushd jetty-ee8
mvn -Pdependency-updates-reports validate
cp target/site/dependency-updates-aggregate-report.html $REPORT_OUTPUT_DIR/dependency-updates-report-ee8.html
echo "HTML Reports can be found in $REPORT_OUTPUT_DIR"

View File

@ -55,4 +55,36 @@
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<!--
$ mvn -Pdependency-updates-reports validate
# once done, check the jetty-core/target/site/dependency-updates-aggregate-report.html
-->
<id>dependency-updates-reports</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<executions>
<execution>
<id>core-report</id>
<phase>validate</phase>
<goals>
<goal>dependency-updates-aggregate-report</goal>
</goals>
<configuration>
<formats>
<format>html</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@ -383,4 +383,36 @@
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<!--
$ mvn -Pdependency-updates-reports validate
# once done, check the jetty-ee8/target/site/dependency-updates-aggregate-report.html
-->
<id>dependency-updates-reports</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<executions>
<execution>
<id>ee8-report</id>
<phase>validate</phase>
<goals>
<goal>dependency-updates-aggregate-report</goal>
</goals>
<configuration>
<formats>
<format>html</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

30
pom.xml
View File

@ -2088,6 +2088,36 @@
</plugins>
</build>
</profile>
<profile>
<!--
$ mvn -Pdependency-updates-reports validate
# once done, check the /target/site/dependency-updates-aggregate-report.html
-->
<id>dependency-updates-reports</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<executions>
<execution>
<id>root-report</id>
<phase>validate</phase>
<goals>
<goal>dependency-updates-aggregate-report</goal>
</goals>
<configuration>
<formats>
<format>html</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- This profile is used exclusively on Eclipse CBI.
Various plugins and artifacts declared here only