{"id":24395177,"url":"https://github.com/ehsannarmani/gradle-mirror-cloudflare-worker","last_synced_at":"2025-04-11T15:02:12.467Z","repository":{"id":269485778,"uuid":"907555588","full_name":"ehsannarmani/gradle-mirror-cloudflare-worker","owner":"ehsannarmani","description":"A mirror that has been developed to download gradle dependencies without network interference and sanctions ","archived":false,"fork":false,"pushed_at":"2025-01-02T09:25:27.000Z","size":16,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T11:04:15.872Z","etag":null,"topics":["android","android-dependency","android-studio","dependency-mirror","gradle","gradle-dependency","gradle-mirror","mirror","mirrored-repository"],"latest_commit_sha":null,"homepage":"https://en-mirror.ir","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ehsannarmani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-23T21:28:04.000Z","updated_at":"2025-02-06T08:27:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"00b7d2dc-0651-4b58-8510-9a7524414952","html_url":"https://github.com/ehsannarmani/gradle-mirror-cloudflare-worker","commit_stats":null,"previous_names":["ehsannarmani/gradle-mirror-cloudflare-worker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsannarmani%2Fgradle-mirror-cloudflare-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsannarmani%2Fgradle-mirror-cloudflare-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsannarmani%2Fgradle-mirror-cloudflare-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsannarmani%2Fgradle-mirror-cloudflare-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehsannarmani","download_url":"https://codeload.github.com/ehsannarmani/gradle-mirror-cloudflare-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248428622,"owners_count":21101774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-dependency","android-studio","dependency-mirror","gradle","gradle-dependency","gradle-mirror","mirror","mirrored-repository"],"created_at":"2025-01-19T20:26:22.032Z","updated_at":"2025-04-11T15:02:12.420Z","avatar_url":"https://github.com/ehsannarmani.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Gradle Mirror By Cloudflare Workers\n\n#### This mirror developed to download gradle dependencies without network interference and sanctions\n\n### Usage:\n\nSimply add the mirror url as a maven repository in the `settings.gradle` file and re-sync project:\n\n```kotlin\npluginManagement {\n    repositories {\n        maven(\"https://en-mirror.ir\")\n    }\n}\ndependencyResolutionManagement {\n    ...\n    repositories {\n        maven(\"https://en-mirror.ir\")\n    }\n}\n```\n\u003e [!NOTE]\n\u003e Clone of mirror is launched at `en-mirror.ir` and ready to use. this mirror contains `google`,`central` and `jitpack` mavens.\n### Repository Filtering\nBy default, all repositories are mirrored. To mirror only a specific repository, include its key in the mirror URL, like this:\n```kotlin\nmaven(\"https://en-mirror.ir/jitpack\")\n```\n\n### Worker Setup:\n- \u003cstrong\u003eManual Setup\u003c/strong\u003e:\n  - Login to cloudflare\n  - Click on workers \u0026 pages tab\n  - Create new worker with optional name and click on deploy\n  - In the new tab, click on edit code\n  - Copy \u0026 Paste worker.js codes into opened tab and click on deploy button\n- \u003cstrong\u003eCLI Setup\u003c/strong\u003e:\n  - Ensure you have Node.js installed on your system, then install the Wrangler CLI: \n    - `npm install -g wrangler`\n  - Login to your cloudflare account using: `wrangler login`\n  - Update configuration in wrangler.toml:\n    - Set `compatibility_date` field to current date\n  - Deploy the worker using: `wrangler deploy`\n- \u003cstrong\u003eBash Setup\u003c/strong\u003e:\n  - Ensure you have Node.js installed on your system\n  - Execute the bash script:\n  - `bash \u003c(curl -fsSL https://raw.githubusercontent.com/ehsannarmani/gradle-mirror-cloudflare-worker/master/setup.sh)`\n  - Note: if you are in Windows os, you can execute the bash script like this:\n  - `bash -c \"bash \u003c(curl -fsSL https://raw.githubusercontent.com/ehsannarmani/gradle-mirror-cloudflare-worker/master/setup.sh)\"`\n#### Now, your worker is ready to use and the mirror url is your worker url in this pattern: `https://[worker-name].[cloudflare-username].workers.dev/`\n\n### Custom Domain:\n- Set up your domain in Cloudflare, configure the DNS servers on the domain, and wait until the domain becomes active\n- After your domain becomes active, click on websites tab and select your domain\n- Click on DNS tab and add new `CNAME` record, set content to your worker domain: `[worker-name].[cloudflare-username].workers.dev`\n- Keep proxied checked\n- Click on Worker Routes tab and add route\n- If you want to mirror your root domain, enter the route like this: `https://your-domain.com/*`\n- Select the created worker and click on save.\n#### Now your custom domain should be connected to worker, and you can use your own mirror!\n\n\u003chr/\u003e\n\n\u003e [!NOTE]\n\u003e You can set up mirror without using cloudflare with PHP Back-End, [see](https://github.com/ehsannarmani/gradle-mirror-php).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehsannarmani%2Fgradle-mirror-cloudflare-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehsannarmani%2Fgradle-mirror-cloudflare-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehsannarmani%2Fgradle-mirror-cloudflare-worker/lists"}