Search Gradle plugins

co.insecurity.repository-mirrors

Gradle Plugin that automatically updates buildscript and project repositories to use the configured mirror URLs.

https://github.com/milo-minderbinder/repository-mirrors-gradle-plugin

Version 0.1.0 (latest)

Created 08 November 2019.

A Gradle plugin that automatically updates buildscript and project repositories to use the configured mirror URLs.

Using the plugins DSL:

plugins {
  id "co.insecurity.repository-mirrors" version "0.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "co.insecurity:repository-mirrors-gradle-plugin:0.1.0"
  }
}

apply plugin: "co.insecurity.repository-mirrors"

Using the plugins DSL:

plugins {
  id("co.insecurity.repository-mirrors") version "0.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("co.insecurity:repository-mirrors-gradle-plugin:0.1.0")
  }
}

apply(plugin = "co.insecurity.repository-mirrors")

Learn how to apply plugins to subprojects