mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
Replace third party repos with Paper repo (#7733)
we now mirror Fabric, Forge, and Mojang
This commit is contained in:
parent
a072a15667
commit
9dcd740211
7 changed files with 10 additions and 35 deletions
|
@ -8,11 +8,6 @@ java {
|
||||||
withJavadocJar()
|
withJavadocJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
maven("https://libraries.minecraft.net")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":paper-api"))
|
implementation(project(":paper-api"))
|
||||||
api("com.mojang:brigadier:1.0.18")
|
api("com.mojang:brigadier:1.0.18")
|
||||||
|
|
|
@ -19,6 +19,8 @@ allprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val paperMavenPublicUrl = "https://papermc.io/repo/repository/maven-public/"
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
options.encoding = Charsets.UTF_8.name()
|
options.encoding = Charsets.UTF_8.name()
|
||||||
|
@ -38,13 +40,9 @@ subprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name == "Paper-MojangAPI") {
|
|
||||||
return@subprojects
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven("https://papermc.io/repo/repository/maven-public/")
|
maven(paperMavenPublicUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +50,7 @@ val spigotDecompiler: Configuration by configurations.creating
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven("https://papermc.io/repo/repository/maven-public/") {
|
maven(paperMavenPublicUrl) {
|
||||||
content {
|
content {
|
||||||
onlyForConfigurations(
|
onlyForConfigurations(
|
||||||
configurations.paperclip.name,
|
configurations.paperclip.name,
|
||||||
|
@ -74,9 +72,9 @@ paperweight {
|
||||||
minecraftVersion.set(providers.gradleProperty("mcVersion"))
|
minecraftVersion.set(providers.gradleProperty("mcVersion"))
|
||||||
serverProject.set(project(":paper-server"))
|
serverProject.set(project(":paper-server"))
|
||||||
|
|
||||||
paramMappingsRepo.set("https://maven.fabricmc.net/")
|
paramMappingsRepo.set(paperMavenPublicUrl)
|
||||||
remapRepo.set("https://maven.fabricmc.net/")
|
remapRepo.set(paperMavenPublicUrl)
|
||||||
decompileRepo.set("https://files.minecraftforge.net/maven/")
|
decompileRepo.set(paperMavenPublicUrl)
|
||||||
|
|
||||||
craftBukkit {
|
craftBukkit {
|
||||||
fernFlowerJar.set(layout.file(spigotDecompiler.elements.map { it.single().asFile }))
|
fernFlowerJar.set(layout.file(spigotDecompiler.elements.map { it.single().asFile }))
|
||||||
|
@ -108,9 +106,7 @@ tasks.generateDevelopmentBundle {
|
||||||
mojangApiCoordinates.set("io.papermc.paper:paper-mojangapi")
|
mojangApiCoordinates.set("io.papermc.paper:paper-mojangapi")
|
||||||
libraryRepositories.addAll(
|
libraryRepositories.addAll(
|
||||||
"https://repo.maven.apache.org/maven2/",
|
"https://repo.maven.apache.org/maven2/",
|
||||||
"https://libraries.minecraft.net/",
|
|
||||||
"https://papermc.io/repo/repository/maven-public/",
|
"https://papermc.io/repo/repository/maven-public/",
|
||||||
"https://maven.fabricmc.net/",
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ diff --git a/build.gradle.kts b/build.gradle.kts
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/build.gradle.kts
|
--- a/build.gradle.kts
|
||||||
+++ b/build.gradle.kts
|
+++ b/build.gradle.kts
|
||||||
@@ -0,0 +0,0 @@ repositories {
|
@@ -0,0 +0,0 @@ plugins {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":paper-api"))
|
implementation(project(":paper-api"))
|
||||||
implementation("jline:jline:2.12.1")
|
implementation("jline:jline:2.12.1")
|
||||||
|
|
|
@ -16,18 +16,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
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 {
|
@@ -0,0 +0,0 @@ dependencies {
|
||||||
Scanning takes about 1-2 seconds so adding this speeds up the server start.
|
Scanning takes about 1-2 seconds so adding this speeds up the server start.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -13,7 +13,7 @@ diff --git a/build.gradle.kts b/build.gradle.kts
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/build.gradle.kts
|
--- a/build.gradle.kts
|
||||||
+++ b/build.gradle.kts
|
+++ b/build.gradle.kts
|
||||||
@@ -0,0 +0,0 @@ repositories {
|
@@ -0,0 +0,0 @@ plugins {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":paper-api"))
|
implementation(project(":paper-api"))
|
||||||
|
|
|
@ -40,10 +40,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ id("com.github.johnrengelman.shadow")
|
+ id("com.github.johnrengelman.shadow")
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+repositories {
|
|
||||||
+ maven("https://libraries.minecraft.net/")
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+dependencies {
|
+dependencies {
|
||||||
+ implementation(project(":paper-api"))
|
+ implementation(project(":paper-api"))
|
||||||
+ implementation("jline:jline:2.12.1")
|
+ implementation("jline:jline:2.12.1")
|
||||||
|
|
|
@ -22,7 +22,7 @@ diff --git a/build.gradle.kts b/build.gradle.kts
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/build.gradle.kts
|
--- a/build.gradle.kts
|
||||||
+++ b/build.gradle.kts
|
+++ b/build.gradle.kts
|
||||||
@@ -0,0 +0,0 @@ repositories {
|
@@ -0,0 +0,0 @@ plugins {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":paper-api"))
|
implementation(project(":paper-api"))
|
||||||
|
|
Loading…
Reference in a new issue