Search Gradle plugins

Version 0.4.2 (latest)

0.4.2

Created 21 February 2024.

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects