Skip to content

Commit

Permalink
Build: run task to update RGs to 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Jan 14, 2021
1 parent 622c510 commit f1ef779
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,26 @@ tasks.register("installBundler") {
outputs.files file("${projectDir}/vendor/bundle/jruby/2.5.0/bin/bundle")
doLast {
gem(projectDir, buildDir, "bundler", "~> 2", "${projectDir}/vendor/bundle/jruby/2.5.0")
}
}
}

tasks.register("updateRubygems", Exec) {
dependsOn assemblyDeps

// RGs 3.2 also packages Bundler -> will end up being a (stdlib) builtin library
outputs.files file("${projectDir}/vendor/jruby/bin/bundle")

workingDir "${projectDir}/vendor/jruby"
commandLine 'bin/jruby', '-S', 'gem', 'update', '--system', '3.2.5'

// NOTE: after the upgrade we could uninstall the rubygems-update gem
}

tasks.register("bootstrap"){
dependsOn installBundler
dependsOn updateRubygems
doLast {
setupJruby(projectDir, buildDir)
}
}
}


Expand Down

0 comments on commit f1ef779

Please sign in to comment.