diff options
author | Noah van der Aa <[email protected]> | 2022-05-20 17:12:30 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-20 08:12:30 -0700 |
commit | ed4e9163efc88a02675fd957af6bf68d02262a83 (patch) | |
tree | afe474d0a01350ba852e0b0843aa300f5588786b | |
parent | 9b492cff368f2606e769f90e814e7ed378c0b52a (diff) | |
download | Paper-ed4e9163efc88a02675fd957af6bf68d02262a83.tar.gz Paper-ed4e9163efc88a02675fd957af6bf68d02262a83.zip |
[ci-skip] Update repository and API urls (#7835)
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | build.gradle.kts | 4 | ||||
-rw-r--r-- | patches/server/0021-Implement-Paper-VersionChecker.patch | 4 | ||||
-rw-r--r-- | settings.gradle.kts | 2 |
4 files changed, 7 insertions, 7 deletions
@@ -30,7 +30,7 @@ How To (Plugin Developers) ```xml <repository> <id>papermc</id> - <url>https://papermc.io/repo/repository/maven-public/</url> + <url>https://repo.papermc.io/repository/maven-public/</url> </repository> ``` * Artifact Information: @@ -49,7 +49,7 @@ How To (Plugin Developers) ```kotlin repositories { maven { - url = uri("https://papermc.io/repo/repository/maven-public/") + url = uri("https://repo.papermc.io/repository/maven-public/") } } diff --git a/build.gradle.kts b/build.gradle.kts index 2939815b8c..59a0a1abd6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,7 +19,7 @@ allprojects { } } -val paperMavenPublicUrl = "https://papermc.io/repo/repository/maven-public/" +val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/" subprojects { tasks.withType<JavaCompile> { @@ -123,7 +123,7 @@ publishing { allprojects { publishing { repositories { - maven("https://papermc.io/repo/repository/maven-snapshots/") { + maven("https://repo.papermc.io/repository/maven-snapshots/") { name = "paperSnapshots" credentials(PasswordCredentials::class) } diff --git a/patches/server/0021-Implement-Paper-VersionChecker.patch b/patches/server/0021-Implement-Paper-VersionChecker.patch index b73f79c61b..727c5e9c9d 100644 --- a/patches/server/0021-Implement-Paper-VersionChecker.patch +++ b/patches/server/0021-Implement-Paper-VersionChecker.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Implement Paper VersionChecker diff --git a/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java new file mode 100644 -index 0000000000000000000000000000000000000000..91d7afc710a2d52b4f429e0381cf64176ecb6415 +index 0000000000000000000000000000000000000000..351159bbdb0c8045f4983f54dee34430dbcc423e --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java @@ -0,0 +1,129 @@ @@ -92,7 +92,7 @@ index 0000000000000000000000000000000000000000..91d7afc710a2d52b4f429e0381cf6417 + if (siteApiVersion == null) { return -1; } + try { + try (BufferedReader reader = Resources.asCharSource( -+ new URL("https://papermc.io/api/v2/projects/paper/versions/" + siteApiVersion), ++ new URL("https://api.papermc.io/v2/projects/paper/versions/" + siteApiVersion), + Charsets.UTF_8 + ).openBufferedStream()) { + JsonObject json = new Gson().fromJson(reader, JsonObject.class); diff --git a/settings.gradle.kts b/settings.gradle.kts index 5b2243583d..18cf95a321 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -3,7 +3,7 @@ import java.util.Locale pluginManagement { repositories { gradlePluginPortal() - maven("https://papermc.io/repo/repository/maven-public/") + maven("https://repo.papermc.io/repository/maven-public/") } } |