From e6efdf17b1028686f48a0300007bc893b3773d3d Mon Sep 17 00:00:00 2001 From: oiupoyt Date: Sat, 19 Sep 2026 22:01:44 +0530 Subject: [PATCH] fix: add fabric.mod.json to core for seamless Jar-in-Jar loading --- core/build.gradle | 8 ++++++++ core/src/main/resources/fabric.mod.json | 17 +++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 core/src/main/resources/fabric.mod.json diff --git a/core/build.gradle b/core/build.gradle index b94d60c..69deb33 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -17,6 +17,14 @@ dependencies { testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } +processResources { + inputs.property "version", project.version + + filesMatching("fabric.mod.json") { + expand "version": project.version + } +} + tasks.named('test') { useJUnitPlatform() } diff --git a/core/src/main/resources/fabric.mod.json b/core/src/main/resources/fabric.mod.json new file mode 100644 index 0000000..c85094b --- /dev/null +++ b/core/src/main/resources/fabric.mod.json @@ -0,0 +1,17 @@ +{ + "schemaVersion": 1, + "id": "jevplayer-core", + "version": "${version}", + "name": "JevPlayer Core", + "description": "Core decision engine and state models for JevPlayer", + "authors": [ + "oiupoyt", + "TypeSafe AI" + ], + "contact": { + "homepage": "https://github.com/oiupoyt/JevPlays", + "sources": "https://github.com/oiupoyt/JevPlays" + }, + "license": "MIT", + "environment": "*" +}