Skip to content

Commit 5859f13

Browse files
marko-bekhtakoentsje
authored andcommitted
HBX-3139 Apply Hibernate javadoc theme
1 parent d14a697 commit 5859f13

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
@@ -119,6 +119,7 @@
119119
<jakarta.xml.bind-api.version>4.0.2</jakarta.xml.bind-api.version>
120120
<maven-resolver.version>1.9.24</maven-resolver.version>
121121
<slf4j.version>2.0.17</slf4j.version>
122+
<version.org.hibernate.infra.hibernate-asciidoctor-theme>6.0.0.Final</version.org.hibernate.infra.hibernate-asciidoctor-theme>
122123

123124
<!-- Plugins not managed by the JBoss parent POM: -->
124125
<maven-plugin-api.version>3.9.11</maven-plugin-api.version>
@@ -403,6 +404,46 @@
403404
</execution>
404405
</executions>
405406
</plugin>
407+
<plugin>
408+
<groupId>org.apache.maven.plugins</groupId>
409+
<artifactId>maven-dependency-plugin</artifactId>
410+
<executions>
411+
<execution>
412+
<id>unpack-asciidoctor-theme</id>
413+
<phase>generate-resources</phase>
414+
<goals>
415+
<goal>unpack</goal>
416+
</goals>
417+
<configuration>
418+
<artifactItems>
419+
<artifactItem>
420+
<groupId>org.hibernate.infra</groupId>
421+
<artifactId>hibernate-asciidoctor-theme</artifactId>
422+
<version>${version.org.hibernate.infra.hibernate-asciidoctor-theme}</version>
423+
<type>zip</type>
424+
<overWrite>true</overWrite>
425+
<outputDirectory>${project.build.directory}/</outputDirectory>
426+
</artifactItem>
427+
</artifactItems>
428+
</configuration>
429+
</execution>
430+
</executions>
431+
</plugin>
432+
<plugin>
433+
<groupId>org.apache.maven.plugins</groupId>
434+
<artifactId>maven-javadoc-plugin</artifactId>
435+
<configuration>
436+
<stylesheetfile>${project.build.directory}/hibernate-asciidoctor-theme/javadoc/jdk17/stylesheet.css</stylesheetfile>
437+
</configuration>
438+
<executions>
439+
<execution>
440+
<id>attach-javadocs</id>
441+
<goals>
442+
<goal>jar</goal>
443+
</goals>
444+
</execution>
445+
</executions>
446+
</plugin>
406447
</plugins>
407448
</pluginManagement>
408449
<plugins>
@@ -418,6 +459,14 @@
418459
<groupId>org.codehaus.mojo</groupId>
419460
<artifactId>flatten-maven-plugin</artifactId>
420461
</plugin>
462+
<plugin>
463+
<groupId>org.apache.maven.plugins</groupId>
464+
<artifactId>maven-dependency-plugin</artifactId>
465+
</plugin>
466+
<plugin>
467+
<groupId>org.apache.maven.plugins</groupId>
468+
<artifactId>maven-javadoc-plugin</artifactId>
469+
</plugin>
421470
<plugin>
422471
<groupId>org.apache.maven.plugins</groupId>
423472
<artifactId>maven-enforcer-plugin</artifactId>

0 commit comments

Comments
 (0)