Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
[ci-skip] Update repository and API urls (#7835)
Dieser Commit ist enthalten in:
Ursprung
9b492cff36
Commit
ed4e9163ef
@ -30,7 +30,7 @@ How To (Plugin Developers)
|
|||||||
```xml
|
```xml
|
||||||
<repository>
|
<repository>
|
||||||
<id>papermc</id>
|
<id>papermc</id>
|
||||||
<url>https://papermc.io/repo/repository/maven-public/</url>
|
<url>https://repo.papermc.io/repository/maven-public/</url>
|
||||||
</repository>
|
</repository>
|
||||||
```
|
```
|
||||||
* Artifact Information:
|
* Artifact Information:
|
||||||
@ -49,7 +49,7 @@ How To (Plugin Developers)
|
|||||||
```kotlin
|
```kotlin
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = uri("https://papermc.io/repo/repository/maven-public/")
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val paperMavenPublicUrl = "https://papermc.io/repo/repository/maven-public/"
|
val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
@ -123,7 +123,7 @@ publishing {
|
|||||||
allprojects {
|
allprojects {
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven("https://papermc.io/repo/repository/maven-snapshots/") {
|
maven("https://repo.papermc.io/repository/maven-snapshots/") {
|
||||||
name = "paperSnapshots"
|
name = "paperSnapshots"
|
||||||
credentials(PasswordCredentials::class)
|
credentials(PasswordCredentials::class)
|
||||||
}
|
}
|
||||||
|
@ -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
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..91d7afc710a2d52b4f429e0381cf64176ecb6415
|
index 0000000000000000000000000000000000000000..351159bbdb0c8045f4983f54dee34430dbcc423e
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
+++ b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
||||||
@@ -0,0 +1,129 @@
|
@@ -0,0 +1,129 @@
|
||||||
@ -92,7 +92,7 @@ index 0000000000000000000000000000000000000000..91d7afc710a2d52b4f429e0381cf6417
|
|||||||
+ if (siteApiVersion == null) { return -1; }
|
+ if (siteApiVersion == null) { return -1; }
|
||||||
+ try {
|
+ try {
|
||||||
+ try (BufferedReader reader = Resources.asCharSource(
|
+ 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
|
+ Charsets.UTF_8
|
||||||
+ ).openBufferedStream()) {
|
+ ).openBufferedStream()) {
|
||||||
+ JsonObject json = new Gson().fromJson(reader, JsonObject.class);
|
+ JsonObject json = new Gson().fromJson(reader, JsonObject.class);
|
||||||
|
@ -3,7 +3,7 @@ import java.util.Locale
|
|||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
maven("https://papermc.io/repo/repository/maven-public/")
|
maven("https://repo.papermc.io/repository/maven-public/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren