diff --git a/fabric/fabric-1.19.4/build.gradle b/fabric/build.gradle similarity index 88% rename from fabric/fabric-1.19.4/build.gradle rename to fabric/build.gradle index 473b6bc8..5055df6e 100644 --- a/fabric/fabric-1.19.4/build.gradle +++ b/fabric/build.gradle @@ -1,5 +1,3 @@ -import org.apache.tools.ant.filters.ReplaceTokens - plugins { id 'fabric-loom' version "$fabric_loom_version" } @@ -7,10 +5,6 @@ plugins { apply plugin: 'fabric-loom' loom.serverOnlyMinecraftJar() -// Get properties from local gradle.properties file -def properties = new Properties() -file("gradle.properties").withInputStream { properties.load(it) } - dependencies { minecraft "com.mojang:minecraft:${fabric_minecraft_version}" mappings "net.fabricmc:yarn:${fabric_yarn_mappings}:v2" @@ -63,13 +57,6 @@ shadowJar { relocate 'com.google.gson', 'net.william278.huskhomes.libraries.gson' } -processResources { - filesMatching(['**/*.json', '**/*.yml']) { - filter ReplaceTokens as Class, beginToken: '${', endToken: '}', - tokens: properties - } -} - remapJar { dependsOn tasks.shadowJar mustRunAfter tasks.shadowJar diff --git a/fabric/fabric-1.20.1/build.gradle b/fabric/fabric-1.20.1/build.gradle deleted file mode 100644 index 473b6bc8..00000000 --- a/fabric/fabric-1.20.1/build.gradle +++ /dev/null @@ -1,83 +0,0 @@ -import org.apache.tools.ant.filters.ReplaceTokens - -plugins { - id 'fabric-loom' version "$fabric_loom_version" -} - -apply plugin: 'fabric-loom' -loom.serverOnlyMinecraftJar() - -// Get properties from local gradle.properties file -def properties = new Properties() -file("gradle.properties").withInputStream { properties.load(it) } - -dependencies { - minecraft "com.mojang:minecraft:${fabric_minecraft_version}" - mappings "net.fabricmc:yarn:${fabric_yarn_mappings}:v2" - modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}" - - // Fabric API modules - Set fabricApiModules = [ - 'fabric-api-base', - 'fabric-lifecycle-events-v1', - 'fabric-entity-events-v1', - 'fabric-command-api-v2', - 'fabric-networking-api-v1' - ] - fabricApiModules.forEach { - modImplementation(fabricApi.module(it, fabric_api_version)) - } - modImplementation include("net.kyori:adventure-platform-fabric:${adventure_platform_fabric_version}") - modImplementation include("me.lucko:fabric-permissions-api:${fabric_permissions_api_version}") - - implementation include("redis.clients:jedis:$jedis_version") - implementation include("org.apache.commons:commons-pool2:$commons_pool_version") - implementation include("com.mysql:mysql-connector-j:$mysql_driver_version") - implementation include("org.xerial:sqlite-jdbc:$sqlite_driver_version") - - compileOnly 'org.jetbrains:annotations:24.0.1' - - shadow project(path: ":common") -} - -shadowJar { - configurations = [project.configurations.shadow] - destinationDirectory.set(file("$projectDir/build/libs")) - - exclude('net.fabricmc:.*') - exclude('net.kyori:.*') - exclude '/mappings/*' - - relocate 'org.apache.commons.io', 'net.william278.huskhomes.libraries.commons.io' - relocate 'org.apache.commons.text', 'net.william278.huskhomes.libraries.commons.text' - relocate 'org.apache.commons.lang3', 'net.william278.huskhomes.libraries.commons.lang3' - relocate 'de.themoep', 'net.william278.huskhomes.libraries' - relocate 'org.jetbrains', 'net.william278.huskhomes.libraries' - relocate 'org.intellij', 'net.william278.huskhomes.libraries' - relocate 'com.zaxxer', 'net.william278.huskhomes.libraries' - relocate 'net.william278.annotaml', 'net.william278.huskhomes.libraries.annotaml' - relocate 'net.william278.paginedown', 'net.william278.huskhomes.libraries.paginedown' - relocate 'net.william278.desertwell', 'net.william278.huskhomes.libraries.desertwell' - relocate 'dev.dejvokep.boostedyaml', 'net.william278.huskhomes.libraries.boostedyaml' - relocate 'org.yaml.snakeyaml', 'net.william278.huskhomes.libraries.snakeyaml' - relocate 'com.google.gson', 'net.william278.huskhomes.libraries.gson' -} - -processResources { - filesMatching(['**/*.json', '**/*.yml']) { - filter ReplaceTokens as Class, beginToken: '${', endToken: '}', - tokens: properties - } -} - -remapJar { - dependsOn tasks.shadowJar - mustRunAfter tasks.shadowJar - inputFile = shadowJar.archiveFile.get() - addNestedDependencies = true - - destinationDirectory.set(file("$rootDir/target/")) - archiveClassifier.set('') -} - -shadowJar.finalizedBy(remapJar) \ No newline at end of file diff --git a/fabric/fabric-1.19.2/src/main/java/net/william278/huskhomes/event/WarpEditCallback.java b/fabric/src/main/java/net/william278/huskhomes/event/WarpEditCallback.java similarity index 100% rename from fabric/fabric-1.19.2/src/main/java/net/william278/huskhomes/event/WarpEditCallback.java rename to fabric/src/main/java/net/william278/huskhomes/event/WarpEditCallback.java