Skip to content

Commit 32fa9be

Browse files
marko-bekhtakoentsje
authored andcommitted
HBX-3139 Apply Hibernate javadoc theme
1 parent 787d0ce commit 32fa9be

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
@@ -113,6 +113,7 @@
113113
<sqlserver.version>9.2.1.jre8</sqlserver.version>
114114
<maven-resolver.version>1.9.24</maven-resolver.version>
115115
<slf4j.version>2.0.17</slf4j.version>
116+
<version.org.hibernate.infra.hibernate-asciidoctor-theme>6.0.0.Final</version.org.hibernate.infra.hibernate-asciidoctor-theme>
116117

117118
<!-- Plugins not managed by the JBoss parent POM: -->
118119
<maven-plugin-api.version>3.9.11</maven-plugin-api.version>
@@ -335,6 +336,46 @@
335336
</execution>
336337
</executions>
337338
</plugin>
339+
<plugin>
340+
<groupId>org.apache.maven.plugins</groupId>
341+
<artifactId>maven-dependency-plugin</artifactId>
342+
<executions>
343+
<execution>
344+
<id>unpack-asciidoctor-theme</id>
345+
<phase>generate-resources</phase>
346+
<goals>
347+
<goal>unpack</goal>
348+
</goals>
349+
<configuration>
350+
<artifactItems>
351+
<artifactItem>
352+
<groupId>org.hibernate.infra</groupId>
353+
<artifactId>hibernate-asciidoctor-theme</artifactId>
354+
<version>${version.org.hibernate.infra.hibernate-asciidoctor-theme}</version>
355+
<type>zip</type>
356+
<overWrite>true</overWrite>
357+
<outputDirectory>${project.build.directory}/</outputDirectory>
358+
</artifactItem>
359+
</artifactItems>
360+
</configuration>
361+
</execution>
362+
</executions>
363+
</plugin>
364+
<plugin>
365+
<groupId>org.apache.maven.plugins</groupId>
366+
<artifactId>maven-javadoc-plugin</artifactId>
367+
<configuration>
368+
<stylesheetfile>${project.build.directory}/hibernate-asciidoctor-theme/javadoc/jdk17/stylesheet.css</stylesheetfile>
369+
</configuration>
370+
<executions>
371+
<execution>
372+
<id>attach-javadocs</id>
373+
<goals>
374+
<goal>jar</goal>
375+
</goals>
376+
</execution>
377+
</executions>
378+
</plugin>
338379
</plugins>
339380
</pluginManagement>
340381
<plugins>
@@ -350,6 +391,14 @@
350391
<groupId>org.codehaus.mojo</groupId>
351392
<artifactId>flatten-maven-plugin</artifactId>
352393
</plugin>
394+
<plugin>
395+
<groupId>org.apache.maven.plugins</groupId>
396+
<artifactId>maven-dependency-plugin</artifactId>
397+
</plugin>
398+
<plugin>
399+
<groupId>org.apache.maven.plugins</groupId>
400+
<artifactId>maven-javadoc-plugin</artifactId>
401+
</plugin>
353402
<plugin>
354403
<groupId>org.apache.maven.plugins</groupId>
355404
<artifactId>maven-enforcer-plugin</artifactId>

0 commit comments

Comments
 (0)