diff --git a/build.gradle b/build.gradle index 6ff945a..9affe66 100644 --- a/build.gradle +++ b/build.gradle @@ -13,6 +13,11 @@ version "$ext.library_version${versionMetadata()}" description "$ext.library_description" defaultTasks 'licenseFormat', 'build' +ext { + set 'version', version.toString() + set 'description', description.toString() +} + publishing { repositories { if (System.getenv("RELEASES_MAVEN_USERNAME") != null) { diff --git a/fabric-1.20.1/src/main/resources/fabric.mod.json b/fabric-1.20.1/src/main/resources/fabric.mod.json index e497c99..3beba1b 100644 --- a/fabric-1.20.1/src/main/resources/fabric.mod.json +++ b/fabric-1.20.1/src/main/resources/fabric.mod.json @@ -1,7 +1,8 @@ { "schemaVersion": 1, "id": "uniform", - "version": "${project.version}", + "version": "${version}", + "description": "${description}", "name": "uniform", "authors": [ "William278", diff --git a/fabric-1.20.6/src/main/resources/fabric.mod.json b/fabric-1.20.6/src/main/resources/fabric.mod.json index e497c99..3beba1b 100644 --- a/fabric-1.20.6/src/main/resources/fabric.mod.json +++ b/fabric-1.20.6/src/main/resources/fabric.mod.json @@ -1,7 +1,8 @@ { "schemaVersion": 1, "id": "uniform", - "version": "${project.version}", + "version": "${version}", + "description": "${description}", "name": "uniform", "authors": [ "William278", diff --git a/gradle.properties b/gradle.properties index 6d19082..08a5441 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,6 +3,6 @@ javaVersion=17 org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.daemon=true -library_version=1.0.6 +library_version=1.0.7 library_archive=uniform library_description=Cross-platform wrapper for making Brigadier commands, based on BrigadierWrapper by Tofaa2, itself inspired by emortalmcs command system. \ No newline at end of file