Skip to content

Instantly share code, notes, and snippets.

View shilohooo's full-sized avatar
🎯
Focusing

shiloh shilohooo

🎯
Focusing
View GitHub Profile
@bennyhuo
bennyhuo / init.gradle.kts
Last active June 20, 2024 03:24
How to config mirrors for repositories in Gradle without changing the source code of your project?
fun RepositoryHandler.enableMirror() {
all {
if (this is MavenArtifactRepository) {
val originalUrl = this.url.toString().removeSuffix("/")
urlMappings[originalUrl]?.let {
logger.lifecycle("Repository[$url] is mirrored to $it")
this.setUrl(it)
}
}
}
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active June 24, 2024 01:22
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized