Skip to content

Commit b119026

Browse files
marko-bekhtakoentsje
authored andcommitted
HBX-3139 Apply Hibernate javadoc theme
1 parent 50df771 commit b119026

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
<sqlserver.version>9.2.1.jre8</sqlserver.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>
@@ -388,6 +389,46 @@
388389
</execution>
389390
</executions>
390391
</plugin>
392+
<plugin>
393+
<groupId>org.apache.maven.plugins</groupId>
394+
<artifactId>maven-dependency-plugin</artifactId>
395+
<executions>
396+
<execution>
397+
<id>unpack-asciidoctor-theme</id>
398+
<phase>generate-resources</phase>
399+
<goals>
400+
<goal>unpack</goal>
401+
</goals>
402+
<configuration>
403+
<artifactItems>
404+
<artifactItem>
405+
<groupId>org.hibernate.infra</groupId>
406+
<artifactId>hibernate-asciidoctor-theme</artifactId>
407+
<version>${version.org.hibernate.infra.hibernate-asciidoctor-theme}</version>
408+
<type>zip</type>
409+
<overWrite>true</overWrite>
410+
<outputDirectory>${project.build.directory}/</outputDirectory>
411+
</artifactItem>
412+
</artifactItems>
413+
</configuration>
414+
</execution>
415+
</executions>
416+
</plugin>
417+
<plugin>
418+
<groupId>org.apache.maven.plugins</groupId>
419+
<artifactId>maven-javadoc-plugin</artifactId>
420+
<configuration>
421+
<stylesheetfile>${project.build.directory}/hibernate-asciidoctor-theme/javadoc/jdk17/stylesheet.css</stylesheetfile>
422+
</configuration>
423+
<executions>
424+
<execution>
425+
<id>attach-javadocs</id>
426+
<goals>
427+
<goal>jar</goal>
428+
</goals>
429+
</execution>
430+
</executions>
431+
</plugin>
391432
</plugins>
392433
</pluginManagement>
393434
<plugins>
@@ -403,6 +444,14 @@
403444
<groupId>org.codehaus.mojo</groupId>
404445
<artifactId>flatten-maven-plugin</artifactId>
405446
</plugin>
447+
<plugin>
448+
<groupId>org.apache.maven.plugins</groupId>
449+
<artifactId>maven-dependency-plugin</artifactId>
450+
</plugin>
451+
<plugin>
452+
<groupId>org.apache.maven.plugins</groupId>
453+
<artifactId>maven-javadoc-plugin</artifactId>
454+
</plugin>
406455
<plugin>
407456
<groupId>org.apache.maven.plugins</groupId>
408457
<artifactId>maven-enforcer-plugin</artifactId>

0 commit comments

Comments
 (0)