Update urls and build

This commit is contained in:
zontreck 2024-03-16 16:52:47 -07:00
parent e193be5cd3
commit d07ee0d854
5 changed files with 13 additions and 14 deletions

View file

@ -27,11 +27,11 @@ configurations {
repositories {
// Use Maven Central for resolving dependencies.
maven {
url = "https://maven.zontreck.dev/repository/internal"
url = "https://maven.zontreck.com/repository/internal"
name = "Aria's Creations Caches"
}
maven {
url = "https://maven.zontreck.dev/repository/zontreck"
url = "https://maven.zontreck.com/repository/zontreck"
name = "Aria's Creations"
}
}
@ -42,7 +42,7 @@ dependencies {
provided ("org.lwjgl.lwjgl:lwjgl:2.9.3")
provided ("org.lwjgl.lwjgl:lwjgl_util:2.9.3")
provided ("org.lwjgl.lwjgl:lwjgl-platform:2.9.3")
provided ("dev.zontreck:LibAC:1.4.15")
provided ("dev.zontreck:LibAC:1.5.11")
}
// Apply a specific Java toolchain to ease working on different environments.
@ -92,8 +92,6 @@ task jarjar(type: Jar) {
duplicatesStrategy = "exclude"
from { configurations.provided.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*'
exclude 'META-INF/*'
exclude 'META-INF/*'
with jar
@ -101,6 +99,10 @@ task jarjar(type: Jar) {
with copyNatives
}
run {
jvmArgs("-Djava.library.path=./natives")
}
jar.finalizedBy(jarjar)
jar.finalizedBy(copyToLib)
jar.finalizedBy(copyNatives)

View file

@ -1192,7 +1192,7 @@ public final class Minecraft implements Runnable {
HTTPResponse response = null;
try {
response = HTTPRequestBuilder.builder()
.withURL("https://api.zontreck.dev/zni/yggdrasil/legacy/server.php")
.withURL("https://api.zontreck.com/crafting/yggdrasil/legacy/server.php")
.withContentType("application/x-www-form-urlencoded")
.withMethod(HTTPMethod.POST)
.withBody("id=" + serverArg.getValue() +

View file

@ -15,7 +15,7 @@ final class NetworkSkinDownloadThread extends Thread {
HttpURLConnection var1 = null;
try {
URL var2 = new URL("https://api.zontreck.dev/zni/yggdrasil/skin/" + this.player.name + ".png");
URL var2 = new URL("https://git.zontreck.com/zontreck/zontreck/raw/branch/master/" + this.player.name + ".png");
var1 = (HttpURLConnection)var2.openConnection();
var1.setDoInput(true);
var1.setDoOutput(false);

View file

@ -27,18 +27,17 @@ configurations {
repositories {
// Use Maven Central for resolving dependencies.
maven {
url = "https://maven.zontreck.dev/repository/internal"
url = "https://maven.zontreck.com/repository/internal"
name = "Aria's Creations Caches"
}
maven {
url = "https://maven.zontreck.dev/repository/zontreck"
url = "https://maven.zontreck.com/repository/zontreck"
name = "Aria's Creations"
}
}
dependencies {
provided ("dev.zontreck:LibAC:1.4.15")
provided ("dev.zontreck:LibAC:1.5.11")
}
// Apply a specific Java toolchain to ease working on different environments.
@ -88,8 +87,6 @@ task jarjar(type: Jar) {
duplicatesStrategy = "exclude"
from { configurations.provided.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*'
exclude 'META-INF/*'
exclude 'META-INF/*'
with jar

View file

@ -21,7 +21,7 @@ final class HeartbeatThread extends Thread {
HttpURLConnection var1 = null;
try {
URL var2 = new URL("https://api.zontreck.dev/zni/yggdrasil/legacy/heartbeat_2.php");
URL var2 = new URL("https://api.zontreck.com/crafting/yggdrasil/legacy/heartbeat_2.php");
var1 = (HttpURLConnection)var2.openConnection();
var1.setRequestMethod("POST");
var1.setDoOutput(true);