diff --git a/.custom_sources.yml b/.custom_sources.yml
index 99215da955261bbaacdfc15d0e9f4bb39fba4867_LmN1c3RvbV9zb3VyY2VzLnltbA==..e19f23a30d15556b3cf2f957cb9a9bfc8bc44b99_LmN1c3RvbV9zb3VyY2VzLnltbA== 100644
--- a/.custom_sources.yml
+++ b/.custom_sources.yml
@@ -154,6 +154,3 @@
 pgbouncer:
   remote: "git@dev.gitlab.org:omnibus-mirror/pgbouncer.git"
   alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/pgbouncer.git"
-ruby-shadow:
-  remote: "git@dev.gitlab.org:omnibus-mirror/ruby-shadow.git"
-  alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/ruby-shadow.git"
diff --git a/config/software/ruby-shadow.rb b/config/software/ruby-shadow.rb
index 99215da955261bbaacdfc15d0e9f4bb39fba4867_Y29uZmlnL3NvZnR3YXJlL3J1Ynktc2hhZG93LnJi..e19f23a30d15556b3cf2f957cb9a9bfc8bc44b99_Y29uZmlnL3NvZnR3YXJlL3J1Ynktc2hhZG93LnJi 100644
--- a/config/software/ruby-shadow.rb
+++ b/config/software/ruby-shadow.rb
@@ -16,10 +16,8 @@
 #
 
 name 'ruby-shadow'
-# From https://github.com/chef/chef/blob/3c35bd0e1d17a5bfd779fab3cc7860ea1923dec6/Gemfile#L41-L44
-version = Gitlab::Version.new('ruby-shadow', 'e408599fdba93340500dad8922e9ca75072879de')
-default_version version.print(false)
-display_version version.print(false)
+
+default_version '2.5.1'
 
 license 'Apache-2.0'
 license_file 'LICENSE'
@@ -28,10 +26,6 @@
 
 dependency 'rubygems'
 
-source git: version.remote
-
-relative_path 'ruby-shadow'
-
 build do
   env = with_standard_compiler_flags(with_embedded_path)
 
@@ -35,9 +29,10 @@
 build do
   env = with_standard_compiler_flags(with_embedded_path)
 
-  # Remove existing built gems in case they exist in the current dir
-  delete 'ruby-shadow-*.gem'
-
-  gem 'build ruby-shadow.gemspec', env: env
-  gem 'install ruby-shadow-*.gem --no-document', env: env
+  gem 'install gitlab-ruby-shadow' \
+      " --clear-sources" \
+      " -s https://rubygems.org" \
+      " --version '#{version}'" \
+      " --bindir '#{install_dir}/embedded/bin'" \
+      ' --no-document', env: env
 end