Skip to content

Commit ffb6ca6

Browse files
marko-bekhtakoentsje
authored andcommitted
HBX-3139 Apply Hibernate javadoc theme
1 parent 255ba5a commit ffb6ca6

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

0 commit comments

Comments
 (0)