Skip to content

Commit

Permalink
Updates installDefaultGems task to replace Xerces (#15357)
Browse files Browse the repository at this point in the history
Replaces the Xerces version shipped with Nokogiri
  • Loading branch information
andsel committed Sep 28, 2023
1 parent b5d03c5 commit 694ef69
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 694ef69

Please sign in to comment.