Skip to content

Commit d9655da

Browse files
author
Dave Syer
committed
Install nodejs independently of antora
1 parent 4712ca5 commit d9655da

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

spring-grpc-docs/pom.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
<properties>
1616
<maven-exec-plugin.version>3.4.1</maven-exec-plugin.version>
17+
<maven-frontend-plugin.version>1.15.1</maven-frontend-plugin.version>
1718
<maven-gem-plugin.version>3.0.3</maven-gem-plugin.version>
1819
<configprops.path>${project.basedir}/src/main/antora/modules/ROOT/partials/_configprops.adoc</configprops.path>
1920
<configprops.inclusionPattern>spring.grpc.*</configprops.inclusionPattern>
@@ -47,6 +48,25 @@
4748
</extension>
4849
</extensions>
4950
<plugins>
51+
<plugin>
52+
<groupId>com.github.eirslett</groupId>
53+
<artifactId>frontend-maven-plugin</artifactId>
54+
<version>${maven-frontend-plugin.version}</version>
55+
<executions>
56+
<execution>
57+
<id>install node and npm</id>
58+
<goals>
59+
<goal>install-node-and-npm</goal>
60+
<goal>npm</goal>
61+
</goals>
62+
<phase>generate-resources</phase>
63+
</execution>
64+
</executions>
65+
<configuration>
66+
<!-- Has to be the same as the antora lifecycle-->
67+
<nodeVersion>v18.17.1</nodeVersion>
68+
</configuration>
69+
</plugin>
5070
<plugin>
5171
<groupId>io.spring.maven.antora</groupId>
5272
<artifactId>antora-maven-plugin</artifactId>
@@ -184,7 +204,8 @@
184204
</goals>
185205
<phase>compile</phase>
186206
<configuration>
187-
<execArgs>${project.build.directory}/gems/bin/asciidoctor-reducer -o
207+
<execArgs>
208+
${project.build.directory}/gems/bin/asciidoctor-reducer -o
188209
${project.build.directory}/CONTRIBUTING.adoc
189210
${basedir}/src/main/antora/modules/ROOT/pages/contribution-guidelines.adoc</execArgs>
190211
</configuration>

0 commit comments

Comments
 (0)