aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorJason Penilla <[email protected]>2022-04-13 20:34:45 -0700
committerJason Penilla <[email protected]>2022-04-13 20:41:37 -0700
commit6625db387ea9fe5296a6c6f984975b387c3089f0 (patch)
treea467110a8e961abdf8d6b84f926c964cd38d21c3 /build.gradle.kts
parent0954966638822410a9ce32c6ea8ae4110d10a8ba (diff)
downloadPaper-6625db387ea9fe5296a6c6f984975b387c3089f0.tar.gz
Paper-6625db387ea9fe5296a6c6f984975b387c3089f0.zip
Replace third party repos with Paper repover/1.17.1
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts19
1 files changed, 8 insertions, 11 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index ad0667f8be..1362f0baf6 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -16,6 +16,8 @@ allprojects {
}
}
+val paperMavenPublicUrl = "https://papermc.io/repo/repository/maven-public/"
+
subprojects {
tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
@@ -28,13 +30,9 @@ subprojects {
filteringCharset = Charsets.UTF_8.name()
}
- if (name == "Paper-MojangAPI") {
- return@subprojects
- }
-
repositories {
mavenCentral()
- maven("https://papermc.io/repo/repository/maven-public/")
+ maven(paperMavenPublicUrl)
}
}
@@ -42,7 +40,7 @@ val spigotDecompiler: Configuration by configurations.creating
repositories {
mavenCentral()
- maven("https://papermc.io/repo/repository/maven-public/") {
+ maven(paperMavenPublicUrl) {
content {
onlyForConfigurations(
configurations.paperclip.name,
@@ -64,9 +62,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 }))
@@ -100,8 +98,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/",
+ paperMavenPublicUrl,
)
}