Search Gradle plugins

Version 2.1.1 (latest)

Created 16 October 2022.

Configure the Sponge maven repository automatically on projects

Using the plugins DSL:

plugins {
  id "org.spongepowered.gradle.repository" version "2.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.spongepowered:spongegradle-repository:2.1.1"
  }
}

apply plugin: "org.spongepowered.gradle.repository"

Using the plugins DSL:

plugins {
  id("org.spongepowered.gradle.repository") version "2.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.spongepowered:spongegradle-repository:2.1.1")
  }
}

apply(plugin = "org.spongepowered.gradle.repository")

Learn how to apply plugins to subprojects