From 694ef69c4588b1fff1e9bfb88f1b1454de2ed935 Mon Sep 17 00:00:00 2001 From: Andrea Selva Date: Thu, 28 Sep 2023 16:49:41 +0200 Subject: [PATCH] Updates installDefaultGems task to replace Xerces (#15357) Replaces the Xerces version shipped with Nokogiri --- build.gradle | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 13e28a6a218..fff61e7d781 100644 --- a/build.gradle +++ b/build.gradle @@ -325,9 +325,17 @@ tasks.register("bootstrap"){ tasks.register("installDefaultGems") { dependsOn bootstrap - doLast { + doLast { rake(projectDir, buildDir, 'plugin:install-default') - } + + // overwrites Xerces bundled with nokogiri 1.12.5 + String xercesDownloadUrl = "https://repo1.maven.org/maven2/xerces/xercesImpl/2.12.2/xercesImpl-2.12.2.jar" + download { + description "Download Xerces from ${xercesDownloadUrl}" + src xercesDownloadUrl + dest new File("${projectDir}/vendor/bundle/jruby/2.5.0/gems/nokogiri-1.12.5-java/lib/", "xercesImpl.jar") + } + } } tasks.register("installTestGems") {