aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.gradle.kts
diff options
context:
space:
mode:
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,
)
}