Skip to content

Commit 1969512

Browse files
marko-bekhtakoentsje
authored andcommitted
HBX-3139 Apply Hibernate javadoc theme
1 parent 4a36d64 commit 1969512

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
@@ -99,6 +99,7 @@
9999
<sqlserver.version>9.2.1.jre8</sqlserver.version>
100100
<maven-resolver.version>1.9.24</maven-resolver.version>
101101
<slf4j.version>2.0.17</slf4j.version>
102+
<version.org.hibernate.infra.hibernate-asciidoctor-theme>6.0.0.Final</version.org.hibernate.infra.hibernate-asciidoctor-theme>
102103

103104
<!-- Plugins not managed by the JBoss parent POM: -->
104105
<maven-plugin-api.version>3.9.11</maven-plugin-api.version>
@@ -321,6 +322,46 @@
321322
</execution>
322323
</executions>
323324
</plugin>
325+
<plugin>
326+
<groupId>org.apache.maven.plugins</groupId>
327+
<artifactId>maven-dependency-plugin</artifactId>
328+
<executions>
329+
<execution>
330+
<id>unpack-asciidoctor-theme</id>
331+
<phase>generate-resources</phase>
332+
<goals>
333+
<goal>unpack</goal>
334+
</goals>
335+
<configuration>
336+
<artifactItems>
337+
<artifactItem>
338+
<groupId>org.hibernate.infra</groupId>
339+
<artifactId>hibernate-asciidoctor-theme</artifactId>
340+
<version>${version.org.hibernate.infra.hibernate-asciidoctor-theme}</version>
341+
<type>zip</type>
342+
<overWrite>true</overWrite>
343+
<outputDirectory>${project.build.directory}/</outputDirectory>
344+
</artifactItem>
345+
</artifactItems>
346+
</configuration>
347+
</execution>
348+
</executions>
349+
</plugin>
350+
<plugin>
351+
<groupId>org.apache.maven.plugins</groupId>
352+
<artifactId>maven-javadoc-plugin</artifactId>
353+
<configuration>
354+
<stylesheetfile>${project.build.directory}/hibernate-asciidoctor-theme/javadoc/jdk17/stylesheet.css</stylesheetfile>
355+
</configuration>
356+
<executions>
357+
<execution>
358+
<id>attach-javadocs</id>
359+
<goals>
360+
<goal>jar</goal>
361+
</goals>
362+
</execution>
363+
</executions>
364+
</plugin>
324365
</plugins>
325366
</pluginManagement>
326367
<plugins>
@@ -336,6 +377,14 @@
336377
<groupId>org.codehaus.mojo</groupId>
337378
<artifactId>flatten-maven-plugin</artifactId>
338379
</plugin>
380+
<plugin>
381+
<groupId>org.apache.maven.plugins</groupId>
382+
<artifactId>maven-dependency-plugin</artifactId>
383+
</plugin>
384+
<plugin>
385+
<groupId>org.apache.maven.plugins</groupId>
386+
<artifactId>maven-javadoc-plugin</artifactId>
387+
</plugin>
339388
<plugin>
340389
<groupId>org.apache.maven.plugins</groupId>
341390
<artifactId>maven-enforcer-plugin</artifactId>

0 commit comments

Comments
 (0)