Skip to content

Commit

Permalink
Use a profile for to create the dependencies' graph.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jan 24, 2024
1 parent fb8700d commit f14e401
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
maven-version: 3.9.5
- name: Build and test with Maven
run: mvn -V --color always -ntp clean verify --file pom.xml '-Dgpg.skip' '-Ppit' | tee maven.log
run: mvn -V --color always -ntp clean verify -Dgpg.skip -Ppit -Pdepgraph | tee maven.log
- name: Run Quality Monitor
uses: uhafner/quality-monitor@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ target
pom.xml.versionsBackup
pom.xml.releaseBackup
release.properties
metrics.env
maven.log
.DS_Store
/package-lock.json
72 changes: 44 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>edu.hm.hafner</groupId>
Expand Down Expand Up @@ -664,22 +665,22 @@
<revapi.versions>
<versionIncreaseAllows>
<major>
<severity>BREAKING</severity>
<attachments>
<vetted>ok</vetted>
</attachments>
<severity>BREAKING</severity>
<attachments>
<vetted>ok</vetted>
</attachments>
</major>
<minor>
<severity>NON_BREAKING</severity>
<attachments>
<vetted>ok</vetted>
</attachments>
<severity>NON_BREAKING</severity>
<attachments>
<vetted>ok</vetted>
</attachments>
</minor>
<patch>
<severity>EQUIVALENT</severity>
<attachments>
<vetted>ok</vetted>
</attachments>
<severity>EQUIVALENT</severity>
<attachments>
<vetted>ok</vetted>
</attachments>
</patch>
</versionIncreaseAllows>
</revapi.versions>
Expand Down Expand Up @@ -723,21 +724,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.ferstl</groupId>
<artifactId>depgraph-maven-plugin</artifactId>
<version>${depgraph-maven-plugin.version}</version>
<configuration>
<graphFormat>puml</graphFormat>
<classpathScope>compile</classpathScope>
<showClassifiers>true</showClassifiers>
<showVersions>true</showVersions>
<showConflicts>true</showConflicts>
<showDuplicates>true</showDuplicates>
<outputFileName>dependency-graph</outputFileName>
<outputDirectory>${project.basedir}/doc</outputDirectory>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -798,6 +784,36 @@
</plugins>
</build>
</profile>
<profile>
<id>depgraph</id>
<build>
<plugins>
<plugin>
<groupId>com.github.ferstl</groupId>
<artifactId>depgraph-maven-plugin</artifactId>
<version>${depgraph-maven-plugin.version}</version>
<configuration>
<graphFormat>puml</graphFormat>
<classpathScope>compile</classpathScope>
<showClassifiers>true</showClassifiers>
<showVersions>true</showVersions>
<showConflicts>true</showConflicts>
<showDuplicates>true</showDuplicates>
<outputFileName>dependency-graph</outputFileName>
<outputDirectory>${project.basedir}/doc</outputDirectory>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>graph</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
Expand Down

0 comments on commit f14e401

Please sign in to comment.