From bd9652fcc2d29e364ea63e2328c6a0634cb6ba37 Mon Sep 17 00:00:00 2001 From: Bluemethyst Date: Sun, 13 Apr 2025 21:12:37 +1200 Subject: [PATCH] Update dependencies and mod properties for versioning and licensing --- build.gradle | 4 +-- gradle.properties | 6 +++-- .../templates/META-INF/neoforge.mods.toml | 25 ++++++++++++++----- update.json | 10 ++++++++ 4 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 update.json diff --git a/build.gradle b/build.gradle index 6da5977..9712784 100644 --- a/build.gradle +++ b/build.gradle @@ -158,9 +158,9 @@ configurations { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" - implementation 'thedarkcolour:kotlinforforge-neoforge:5.6.0' + implementation "thedarkcolour:kotlinforforge-neoforge:$kotlin_for_forge_version" - implementation "maven.modrinth:ex-deorum:3.6" + implementation "maven.modrinth:ex-deorum:$exdeorum_version" implementation "curse.maven:probejs-585406:5820894" diff --git a/gradle.properties b/gradle.properties index f57654d..25e2790 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,6 +26,8 @@ loader_version_range=[1,) kubejs_version=2101.7.1-build.181 +kotlin_for_forge_version=5.7.0 +exdeorum_version=3.6 ## Mod Properties @@ -35,9 +37,9 @@ mod_id=toolsjs # The human-readable display name for the mod. mod_name=ToolsJS # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. -mod_license=All Rights Reserved +mod_license=CC BY-NC-SA 4.0 # The mod version. See https://semver.org/ -mod_version=1.0.0 +mod_version=0.1.0 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/templates/META-INF/neoforge.mods.toml b/src/main/templates/META-INF/neoforge.mods.toml index 5e0b99f..f62f355 100644 --- a/src/main/templates/META-INF/neoforge.mods.toml +++ b/src/main/templates/META-INF/neoforge.mods.toml @@ -13,7 +13,7 @@ loaderVersion="[5.6,)" license="${mod_license}" # A URL to refer people to when problems occur with this mod -#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional +issueTrackerURL="https://github.com/Bluemethyst/ToolsJS/issues" #optional # A list of mods - how many allowed here is determined by the individual mod loader [[mods]] #mandatory @@ -28,16 +28,16 @@ version="${mod_version}" #mandatory displayName="${mod_name}" #mandatory # A URL to query for updates for this mod. See the JSON update specification https://docs.neoforged.net/docs/misc/updatechecker/ -#updateJSONURL="https://change.me.example.invalid/updates.json" #optional +updateJSONURL="https://github.com/Bluemethyst/ToolsJS/blob/1.21.1/update.json" #optional # A URL for the "homepage" for this mod, displayed in the mod UI -#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional +displayURL="https://modrinth.com/mods/toolsjs/" #optional # A file name (in the root of the mod JAR) containing a logo for display -#logoFile="examplemod.png" #optional +logoFile="icon.png" #optional # A text field displayed in the mod UI -#credits="" #optional +credits="BlakeBr0, FooterManDev, TheDarkColour" #optional # A text field displayed in the mod UI authors="${mod_authors}" #optional @@ -79,11 +79,24 @@ description='''${mod_description}''' [[dependencies.${mod_id}]] modId="minecraft" type="required" - # This version range declares a minimum of the current minecraft version up to but not including the next major version versionRange="${minecraft_version_range}" ordering="NONE" side="BOTH" +[[dependencies.${mod_id}]] + modId="kotlinforforge" + type="required" + versionRange="[5.7.0,)" + ordering="NONE" + side="BOTH" + +[[dependencies.${mod_id}]] + modId="exdeorum" + type="optional" + versionRange="[3.6,)" + ordering="NONE" + side="BOTH" + [modproperties.${mod_id}] catalogueImageIcon="icon.png" # Features are specific properties of the game environment, that you may want to declare you require. This example declares diff --git a/update.json b/update.json new file mode 100644 index 0000000..6f23e35 --- /dev/null +++ b/update.json @@ -0,0 +1,10 @@ +{ + "homepage": "https://modrinth.net/mods/toolsjs", + "promos": { + "1.21.1-latest": "0.1.0", + "1.21.1-recommended": "0.1.0" + }, + "1.21.1": { + "0.1.0": "Inital Beta Release" + } +} \ No newline at end of file