Skip to content

Migrate from services.gradle.org to downloads.gradle.org#6823

Merged
timtebeek merged 5 commits intomainfrom
migrate-gradle-downloads-url
Feb 26, 2026
Merged

Migrate from services.gradle.org to downloads.gradle.org#6823
timtebeek merged 5 commits intomainfrom
migrate-gradle-downloads-url

Conversation

@timtebeek
Copy link
Member

Summary

  • services.gradle.org now returns 301 redirects to downloads.gradle.org. Updated all distribution and version API URLs to use the new canonical domain directly, avoiding unnecessary redirect hops.
  • The old services.gradle.org domain is still accepted in existing wrapper properties files for backward compatibility via a startsWith check in GradleWrapper.determineGradleVersion.
  • Updated production code, tests, examples, and the project's own gradle-wrapper.properties.

Test plan

  • Verify ./gradlew :rewrite-gradle:test passes (integration tests hit live downloads.gradle.org endpoints)
  • Verify existing projects with services.gradle.org wrapper URLs are still handled correctly (backward compat via dual startsWith check)

services.gradle.org now returns 301 redirects to downloads.gradle.org.
Update all distribution and version API URLs to use the new canonical
domain directly, avoiding unnecessary redirect hops. The old
services.gradle.org domain is still accepted in existing wrapper
properties files for backward compatibility.
The /versions/all endpoint does not exist on downloads.gradle.org
(returns 404), so GRADLE_VERSIONS_ALL_URL must remain on
services.gradle.org while distribution URLs use downloads.gradle.org.
…e.org

The /versions/all API on services.gradle.org returns download URLs using
the services.gradle.org domain. These URLs need to be rewritten to
downloads.gradle.org to match the migration.
@timtebeek timtebeek marked this pull request as ready for review February 26, 2026 13:49
@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite Feb 26, 2026
@timtebeek timtebeek merged commit 1f37320 into main Feb 26, 2026
1 check passed
@timtebeek timtebeek deleted the migrate-gradle-downloads-url branch February 26, 2026 15:47
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gradle recipe Requested Recipe

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants