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 81b0e9c
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,32 @@ def assemblyDeps = [downloadAndInstallJRuby, assemble] + subprojects.collect {
tasks.register("installBundler") {
dependsOn assemblyDeps
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
}
doLast {
gem(projectDir, buildDir, "bundler", "~> 2", "${projectDir}/vendor/bundle/jruby/2.5.0")
}
}

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


Expand Down

0 comments on commit 81b0e9c

Please sign in to comment.