Skip to content

Commit cf2ca41

Browse files
committed
Pin Antora's Node version to 24.14.1
24.15.0 regularly crashes during Windows CI builds. The suspected cause is nodejs/node#62991. Closes spring-projectsgh-50295
1 parent 6c09b36 commit cf2ca41

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎buildSrc/src/main/java/org/springframework/boot/build/AntoraConventions.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
import com.fasterxml.jackson.databind.ObjectMapper;
3030
import com.github.gradle.node.NodeExtension;
31+
import com.github.gradle.node.NodePlugin;
3132
import com.github.gradle.node.npm.task.NpmInstallTask;
3233
import io.spring.gradle.antora.GenerateAntoraYmlPlugin;
3334
import io.spring.gradle.antora.GenerateAntoraYmlTask;
@@ -122,6 +123,9 @@ private void apply(Project project, AntoraPlugin antoraPlugin) {
122123
});
123124
checkAntoraJavadocMacros.configure((macrosTask) -> macrosTask.setClasspath(javadocMacros));
124125
});
126+
project.getPlugins()
127+
.withType(NodePlugin.class,
128+
(node) -> project.getExtensions().getByType(NodeExtension.class).getVersion().set("24.14.1"));
125129
}
126130

127131
private void configureGenerateAntoraPlaybookTask(Project project,

0 commit comments

Comments
 (0)