ARTIFACTORY: RubyGems.org Local Repositories Dependency API Deprecation
Note that this article applies to local RubyGems repositories: to manage the /dependencies deprecation for remote repositories, see: ARTIFACTORY: RubyGems.org Dependency API Deprecation.
RubyGems has deprecated their support of the /dependencies REST API back in May 2023 impacting our Remote Repositories, and JFrog is now removing the support for the same API against our Local repositories to finalize the alignment with the RubyGems registry.
For more information, please read this blog post by RubyGems: RubyGems.org Dependency API Deprecation.
Gems Local repositories /dependencies REST API will reach end-of-life on June 1st, 2024.
Mitigation steps
Using the compact index API instead of the deprecated /dependencies REST API is the preferred and recommended long-term solution but this requires you to upgrade your Gems/Bundler client versions.
By default, JFrog has activated Compact index support for both Cloud & Self Hosted customers as of version 7.55.10.
To utilize the compact index API, follow these steps
1. Make sure that your Gem/Bundler clients are running on the following versions (upgrade if needed):
- Gem client: Version 3.2.3 or higher.
- Bundler client: Version 1.12 or higher
2. Verify that compact indexing in Artifactory is activated by checking the following artifactory.system.properties file and that the value is set to true:
artifactory.gems.compact.index.enabled=true
- If you are enabling this setting please restart Artifactory for the change to take effect.
- After Artifactory has restarted please perform a “Recalculate Index” action for each of your Local and Virtual Gem Repositories repositories after enabling compact indexing.