Replace third party repos with Paper repo (#7733)

we now mirror Fabric, Forge, and Mojang
This commit is contained in:
Jason Penilla 2022-04-13 19:58:48 -07:00
parent a072a15667
commit 9dcd740211
7 changed files with 10 additions and 35 deletions

View file

@ -8,11 +8,6 @@ java {
withJavadocJar()
}
repositories {
mavenCentral()
maven("https://libraries.minecraft.net")
}
dependencies {
implementation(project(":paper-api"))
api("com.mojang:brigadier:1.0.18")

View file

@ -19,6 +19,8 @@ allprojects {
}
}
val paperMavenPublicUrl = "https://papermc.io/repo/repository/maven-public/"
subprojects {
tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
@ -38,13 +40,9 @@ subprojects {
}
}
if (name == "Paper-MojangAPI") {
return@subprojects
}
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven(paperMavenPublicUrl)
}
}
@ -52,7 +50,7 @@ val spigotDecompiler: Configuration by configurations.creating
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/") {
maven(paperMavenPublicUrl) {
content {
onlyForConfigurations(
configurations.paperclip.name,
@ -74,9 +72,9 @@ paperweight {
minecraftVersion.set(providers.gradleProperty("mcVersion"))
serverProject.set(project(":paper-server"))
paramMappingsRepo.set("https://maven.fabricmc.net/")
remapRepo.set("https://maven.fabricmc.net/")
decompileRepo.set("https://files.minecraftforge.net/maven/")
paramMappingsRepo.set(paperMavenPublicUrl)
remapRepo.set(paperMavenPublicUrl)
decompileRepo.set(paperMavenPublicUrl)
craftBukkit {
fernFlowerJar.set(layout.file(spigotDecompiler.elements.map { it.single().asFile }))
@ -108,9 +106,7 @@ tasks.generateDevelopmentBundle {
mojangApiCoordinates.set("io.papermc.paper:paper-mojangapi")
libraryRepositories.addAll(
"https://repo.maven.apache.org/maven2/",
"https://libraries.minecraft.net/",
"https://papermc.io/repo/repository/maven-public/",
"https://maven.fabricmc.net/",
)
}

View file

@ -8,7 +8,7 @@ diff --git a/build.gradle.kts b/build.gradle.kts
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -0,0 +0,0 @@ repositories {
@@ -0,0 +0,0 @@ plugins {
dependencies {
implementation(project(":paper-api"))
implementation("jline:jline:2.12.1")

View file

@ -16,18 +16,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
plugins {
java
@@ -0,0 +0,0 @@ plugins {
repositories {
maven("https://libraries.minecraft.net/")
+ // Paper start
+ maven("https://maven.fabricmc.net/") {
+ mavenContent { includeModule("net.fabricmc", "mapping-io") }
+ }
+ // Paper end
}
dependencies {
@@ -0,0 +0,0 @@ dependencies {
Scanning takes about 1-2 seconds so adding this speeds up the server start.
*/

View file

@ -13,7 +13,7 @@ diff --git a/build.gradle.kts b/build.gradle.kts
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -0,0 +0,0 @@ repositories {
@@ -0,0 +0,0 @@ plugins {
dependencies {
implementation(project(":paper-api"))

View file

@ -40,10 +40,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ id("com.github.johnrengelman.shadow")
+}
+
+repositories {
+ maven("https://libraries.minecraft.net/")
+}
+
+dependencies {
+ implementation(project(":paper-api"))
+ implementation("jline:jline:2.12.1")

View file

@ -22,7 +22,7 @@ diff --git a/build.gradle.kts b/build.gradle.kts
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -0,0 +0,0 @@ repositories {
@@ -0,0 +0,0 @@ plugins {
dependencies {
implementation(project(":paper-api"))