Skip to content

Commit babd804

Browse files
committed
build(pom): add figlet-maven-plugin for banner generation
1 parent d77a94c commit babd804

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

pom.xml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
<dep.plugin.compiler.version>3.15.0</dep.plugin.compiler.version>
135135
<dep.plugin.cyclonedx.version>2.9.3</dep.plugin.cyclonedx.version>
136136
<dep.plugin.enforcer.version>3.6.3</dep.plugin.enforcer.version>
137+
<dep.plugin.figlet.version>1.0.0</dep.plugin.figlet.version>
137138
<!-- last error-prone version compatible with Java 17; 2.43.0+ requires Java 21 -->
138139
<dep.plugin.error-prone.version>2.42.0</dep.plugin.error-prone.version>
139140
<dep.plugin.error-prone-support.version>0.26.0</dep.plugin.error-prone-support.version>
@@ -151,8 +152,6 @@
151152
<dep.plugin.surefire.version>3.5.6</dep.plugin.surefire.version>
152153
<dep.plugin.versions.version>2.21.0</dep.plugin.versions.version>
153154

154-
<sonar.coverage.jacoco.xmlReportPaths>${project.build.directory}/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
155-
156155
<surefireArgLine /> <!-- placeholder; overridden by jacoco-prepare-agent -->
157156
</properties>
158157

@@ -248,6 +247,19 @@
248247

249248
<plugins>
250249

250+
<plugin>
251+
<groupId>io.github.spannm</groupId>
252+
<artifactId>figlet-maven-plugin</artifactId>
253+
<version>${dep.plugin.figlet.version}</version>
254+
<configuration>
255+
<content><![CDATA[
256+
<lineBreak/><lineBreak/>
257+
<figletFont name="chunky">${project.dist.name}</figletFont>
258+
<preserveWhitespace> v${project.version}</preserveWhitespace><lineBreak/>
259+
]]></content>
260+
</configuration>
261+
</plugin>
262+
251263
<plugin>
252264
<groupId>org.apache.maven.plugins</groupId>
253265
<artifactId>maven-compiler-plugin</artifactId>
@@ -657,6 +669,18 @@
657669
-->
658670
<plugins>
659671

672+
<plugin>
673+
<groupId>io.github.spannm</groupId>
674+
<artifactId>figlet-maven-plugin</artifactId>
675+
<executions>
676+
<execution>
677+
<goals>
678+
<goal>render</goal>
679+
</goals>
680+
</execution>
681+
</executions>
682+
</plugin>
683+
660684
<plugin>
661685
<groupId>org.apache.maven.plugins</groupId>
662686
<artifactId>maven-enforcer-plugin</artifactId>

0 commit comments

Comments
 (0)