Search Gradle plugins

Version 2.2.0 (latest)

2.2.0

Created 09 September 2023.

Configure the Sponge maven repository automatically on projects

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects