3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 19:02:36 +01:00
Dieser Commit ist enthalten in:
Alexander Brandes 2022-09-21 16:41:07 +02:00
Ursprung ab55d07ffd
Commit 4f26561cc1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -23,7 +23,7 @@ logger.lifecycle("""
******************************************* *******************************************
""") """)
var rootVersion by extra("2.4.5") var rootVersion by extra("2.4.6")
var snapshot by extra("SNAPSHOT") var snapshot by extra("SNAPSHOT")
var revision: String by extra("") var revision: String by extra("")
var buildNumber by extra("") var buildNumber by extra("")
@ -41,7 +41,7 @@ ext {
} }
} }
version = String.format("%s-%s", rootVersion, buildNumber) version = String.format("%s", rootVersion)
if (!project.hasProperty("gitCommitHash")) { if (!project.hasProperty("gitCommitHash")) {
apply(plugin = "org.ajoberstar.grgit") apply(plugin = "org.ajoberstar.grgit")

Datei anzeigen

@ -599,7 +599,7 @@ public class TextureUtil implements TextureHolder {
* *
* @return {@link VersionMetadata} containing the id (= version) and url to the client manifest itself * @return {@link VersionMetadata} containing the id (= version) and url to the client manifest itself
* @throws IOException If any http / i/o operation fails. * @throws IOException If any http / i/o operation fails.
* @since TODO * @since 2.4.6
*/ */
private static VersionMetadata getLatestVersion() throws IOException { private static VersionMetadata getLatestVersion() throws IOException {
try (BufferedInputStream in = new BufferedInputStream(new URL(VERSION_MANIFEST).openStream()); try (BufferedInputStream in = new BufferedInputStream(new URL(VERSION_MANIFEST).openStream());
@ -624,7 +624,7 @@ public class TextureUtil implements TextureHolder {
* @param metadata The version metadata containing the url to the client.jar * @param metadata The version metadata containing the url to the client.jar
* @return The full url to the client.jar including the expected file hash for validation purposes * @return The full url to the client.jar including the expected file hash for validation purposes
* @throws IOException If any http / i/o operation fails. * @throws IOException If any http / i/o operation fails.
* @since TODO * @since 2.4.6
*/ */
private static HashedResource getLatestClientJarUrl(VersionMetadata metadata) throws IOException { private static HashedResource getLatestClientJarUrl(VersionMetadata metadata) throws IOException {
try (BufferedInputStream in = new BufferedInputStream(new URL(metadata.url()).openStream()); try (BufferedInputStream in = new BufferedInputStream(new URL(metadata.url()).openStream());
@ -642,7 +642,7 @@ public class TextureUtil implements TextureHolder {
* @return The hash of the file contents * @return The hash of the file contents
* @throws NoSuchAlgorithmException If the SHA-1 algorithm could not be resolved * @throws NoSuchAlgorithmException If the SHA-1 algorithm could not be resolved
* @throws IOException If any I/O operation failed * @throws IOException If any I/O operation failed
* @since TODO * @since 2.4.6
*/ */
private static String calculateSha1(Path path) throws NoSuchAlgorithmException, IOException { private static String calculateSha1(Path path) throws NoSuchAlgorithmException, IOException {
MessageDigest digest = MessageDigest.getInstance("SHA-1"); MessageDigest digest = MessageDigest.getInstance("SHA-1");