Skip to content

Commit 2432708

Browse files
marko-bekhtakoentsje
authored andcommitted
HBX-3139 Apply Hibernate javadoc theme
1 parent f756633 commit 2432708

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

pom.xml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
<sqlserver.version>9.2.1.jre8</sqlserver.version>
117117
<maven-resolver.version>1.9.24</maven-resolver.version>
118118
<slf4j.version>2.0.17</slf4j.version>
119+
<version.org.hibernate.infra.hibernate-asciidoctor-theme>6.0.0.Final</version.org.hibernate.infra.hibernate-asciidoctor-theme>
119120

120121
<!-- Plugins not managed by the JBoss parent POM: -->
121122
<maven-plugin-api.version>3.9.11</maven-plugin-api.version>
@@ -359,6 +360,46 @@
359360
</execution>
360361
</executions>
361362
</plugin>
363+
<plugin>
364+
<groupId>org.apache.maven.plugins</groupId>
365+
<artifactId>maven-dependency-plugin</artifactId>
366+
<executions>
367+
<execution>
368+
<id>unpack-asciidoctor-theme</id>
369+
<phase>generate-resources</phase>
370+
<goals>
371+
<goal>unpack</goal>
372+
</goals>
373+
<configuration>
374+
<artifactItems>
375+
<artifactItem>
376+
<groupId>org.hibernate.infra</groupId>
377+
<artifactId>hibernate-asciidoctor-theme</artifactId>
378+
<version>${version.org.hibernate.infra.hibernate-asciidoctor-theme}</version>
379+
<type>zip</type>
380+
<overWrite>true</overWrite>
381+
<outputDirectory>${project.build.directory}/</outputDirectory>
382+
</artifactItem>
383+
</artifactItems>
384+
</configuration>
385+
</execution>
386+
</executions>
387+
</plugin>
388+
<plugin>
389+
<groupId>org.apache.maven.plugins</groupId>
390+
<artifactId>maven-javadoc-plugin</artifactId>
391+
<configuration>
392+
<stylesheetfile>${project.build.directory}/hibernate-asciidoctor-theme/javadoc/jdk17/stylesheet.css</stylesheetfile>
393+
</configuration>
394+
<executions>
395+
<execution>
396+
<id>attach-javadocs</id>
397+
<goals>
398+
<goal>jar</goal>
399+
</goals>
400+
</execution>
401+
</executions>
402+
</plugin>
362403
</plugins>
363404
</pluginManagement>
364405
<plugins>
@@ -374,6 +415,14 @@
374415
<groupId>org.codehaus.mojo</groupId>
375416
<artifactId>flatten-maven-plugin</artifactId>
376417
</plugin>
418+
<plugin>
419+
<groupId>org.apache.maven.plugins</groupId>
420+
<artifactId>maven-dependency-plugin</artifactId>
421+
</plugin>
422+
<plugin>
423+
<groupId>org.apache.maven.plugins</groupId>
424+
<artifactId>maven-javadoc-plugin</artifactId>
425+
</plugin>
377426
<plugin>
378427
<groupId>org.apache.maven.plugins</groupId>
379428
<artifactId>maven-enforcer-plugin</artifactId>

0 commit comments

Comments
 (0)