From aaf9a545231dc2f8481140c13b821105ed4832c5 Mon Sep 17 00:00:00 2001 From: Szum123321 Date: Sun, 6 Nov 2022 11:02:02 +0100 Subject: [PATCH] dep update + version bump + added testmod --- build.gradle | 11 ++++++ gradle.properties | 12 +++---- .../textile_backup/TextileBackupTest.java | 10 ++++++ src/test/resources/fabric.mod.json | 35 +++++++++++++++++++ .../resources/textile_backup-test.mixins.json | 12 +++++++ 5 files changed, 74 insertions(+), 6 deletions(-) create mode 100644 src/test/java/net/szum123321/test/textile_backup/TextileBackupTest.java create mode 100644 src/test/resources/fabric.mod.json create mode 100644 src/test/resources/textile_backup-test.mixins.json diff --git a/build.gradle b/build.gradle index 6d92a9e..72e04cd 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,17 @@ repositories { mavenCentral() } +loom { + runs { + testServer { + server() + ideConfigGenerated project.rootProject == project + name = "Testmod Server" + source sourceSets.test + } + } +} + dependencies { //to change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" diff --git a/gradle.properties b/gradle.properties index 310b6ac..3ed2600 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,17 +2,17 @@ org.gradle.jvmargs=-Xmx1G minecraft_version=1.19.2 -yarn_mappings=1.19.2+build.8 -loader_version=0.14.9 +yarn_mappings=1.19.2+build.28 +loader_version=0.14.10 #Fabric api -fabric_version=0.60.0+1.19.2 +fabric_version=0.64.0+1.19.2 #Cloth Config -cloth_version=8.0.75 +cloth_version=8.2.88 #ModMenu -modmenu_version=4.0.5 +modmenu_version=4.1.0 #Lazy DFU for faster dev start lazydfu_version=v0.1.3 @@ -21,6 +21,6 @@ lazydfu_version=v0.1.3 pgzip_commit_hash=af5f5c297e735f3f2df7aa4eb0e19a5810b8aff6 # Mod Properties -mod_version = 2.4.0 +mod_version = 2.5.0 maven_group = net.szum123321 archives_base_name = textile_backup \ No newline at end of file diff --git a/src/test/java/net/szum123321/test/textile_backup/TextileBackupTest.java b/src/test/java/net/szum123321/test/textile_backup/TextileBackupTest.java new file mode 100644 index 0000000..bd646f2 --- /dev/null +++ b/src/test/java/net/szum123321/test/textile_backup/TextileBackupTest.java @@ -0,0 +1,10 @@ +package net.szum123321.test.textile_backup; + +import net.fabricmc.api.ModInitializer; + +public class TextileBackupTest implements ModInitializer { + @Override + public void onInitialize() { + + } +} diff --git a/src/test/resources/fabric.mod.json b/src/test/resources/fabric.mod.json new file mode 100644 index 0000000..809dace --- /dev/null +++ b/src/test/resources/fabric.mod.json @@ -0,0 +1,35 @@ +{ + "schemaVersion": 1, + "id": "textile_backup", + "version": "${version}", + + "name": "Textile Backup Test", + "authors": [ + "Szum123321" + ], + "contact": { + "homepage": "https://www.curseforge.com/minecraft/mc-mods/textile-backup", + "issues": "https://github.com/Szum123321/textile_backup/issues", + "sources": "https://github.com/Szum123321/textile_backup" + }, + + "license": "GPLv3", + + "environment": "*", + "entrypoints": { + "main": [ + "net.szum123321.test.textile_backup.TextileBackupTest" + ] + }, + "mixins": [ + ], + + "depends": { + "fabricloader": ">=0.14.6", + "fabric": "*", + "minecraft": ">=1.19.1", + "cloth-config2": "*", + "java": ">=16", + "textile_backup": "*" + } +} \ No newline at end of file diff --git a/src/test/resources/textile_backup-test.mixins.json b/src/test/resources/textile_backup-test.mixins.json new file mode 100644 index 0000000..f858f63 --- /dev/null +++ b/src/test/resources/textile_backup-test.mixins.json @@ -0,0 +1,12 @@ +{ + "required": true, + "package": "net.szum123321.test.textile_backup.mixin", + "compatibilityLevel": "JAVA_16", + "mixins": [ + ], + "client": [ + ], + "injectors": { + "defaultRequire": 1 + } +}