This is an automated email from the ASF dual-hosted git repository.

mdrob pushed a commit to branch jira/solr-15556-antora
in repository https://gitbox.apache.org/repos/asf/solr.git

commit de708e3f31961dd5137b1685f18ee40171a5ece8
Author: Mike Drob <[email protected]>
AuthorDate: Tue Jan 25 15:27:28 2022 -0600

    Configure node.js to install to build dir
---
 solr/solr-ref-guide/build.gradle | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/solr/solr-ref-guide/build.gradle b/solr/solr-ref-guide/build.gradle
index 38f600b..6fe28b9 100644
--- a/solr/solr-ref-guide/build.gradle
+++ b/solr/solr-ref-guide/build.gradle
@@ -294,6 +294,18 @@ abstract class PrepareSources extends DefaultTask {
     }
 }
 
+// Even though we don't use node.js, Antora does so we need to configure it 
for our build
+node {
+  // This is where we will save node, npm, and npx if not already present on 
the system
+  workDir = file("${project.buildDir}/nodejs")
+
+  // TODO figure out how to configure which directory npm will install into 
and then read from
+  // This currently calls "npm install 
@antora/site-generator-default@`antoraVersion`"
+  // 
https://gitlab.com/antora/antora-gradle-plugin/-/blob/main/src/main/java/io/github/rwinch/antora/AntoraPlugin.java#L61
+  npmWorkDir = file("${project.buildDir}/npm") // this doesn't seem to do it
+}
+
+
 // TODO Pull playbook file from command-line param
 // Documentation for Antora-Gradle plugin at
 // https://gitlab.com/antora/antora-gradle-plugin

Reply via email to