Skip to content

Commit

Permalink
icon, include quilt-config & quilt json parsers, prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Feb 3, 2024
1 parent b4d9499 commit aba5846
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.slf4j.MarkerFactory;

public class AzusaConfigMod {
public static final String MOD_ID = "azusa_config";
public static final String MOD_ID = "azusaconfig";
public static final String MOD_NAME = "AzusaConfig";


Expand Down
3 changes: 0 additions & 3 deletions common/src/main/resources/assets/examplemod/lang/en_us.json

This file was deleted.

Binary file added common/src/main/resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ dependencies {
modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
modApi "dev.architectury:architectury-fabric:${rootProject.architectury_version}"

shadowCommon "org.quiltmc:quilt-config:${rootProject.quiltconfig_version}"
shadowCommon "org.quiltmc.parsers:json:${project.quiltparsers_version}"
include "org.quiltmc:quilt-config:${rootProject.quiltconfig_version}"
include "org.quiltmc.parsers:json:${rootProject.quiltparsers_version}"
shadowCommon "com.electronwill.night-config:core:${rootProject.nightconfig_version}"
shadowCommon "com.electronwill.night-config:toml:${rootProject.nightconfig_version}"

Expand All @@ -42,8 +42,6 @@ processResources {
shadowJar {
exclude "architectury.common.json"

relocate "org.quiltmc.config", "${rootProject.maven_group}.shadow.quiltconfig"
relocate "org.quiltmc.parsers", "${rootProject.maven_group}.shadow.quiltparsers"
relocate "com.electronwill.nightconfig", "${rootProject.maven_group}.shadow.nightconfig"

configurations = [project.configurations.shadowCommon]
Expand Down
3 changes: 2 additions & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"id": "azusa_config",
"id": "azusaconfig",
"version": "${version}",
"name": "AzusaConfig",
"description": "A library to bring the Quilt Loader's Config system into Fabric/Forge/NeoForge.",
Expand All @@ -12,6 +12,7 @@
"sources": "https://github.com/FabricMC/fabric-example-mod"
},
"license": "Apache-2.0",
"icon": "icon.png",
"environment": "*",
"entrypoints": {
"main": [
Expand Down
7 changes: 2 additions & 5 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ configurations {
dependencies {
forge "net.minecraftforge:forge:${rootProject.forge_version}"

shadowCommon "org.quiltmc:quilt-config:${rootProject.quiltconfig_version}"
shadowCommon "org.quiltmc.parsers:json:${project.quiltparsers_version}"
include "org.quiltmc:quilt-config:${rootProject.quiltconfig_version}"
include "org.quiltmc.parsers:json:${rootProject.quiltparsers_version}"

common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }
Expand All @@ -39,9 +39,6 @@ shadowJar {
exclude "fabric.mod.json"
exclude "architectury.common.json"

relocate "org.quiltmc.config", "${rootProject.maven_group}.shadow.quiltconfig"
relocate "org.quiltmc.parsers", "${rootProject.maven_group}.shadow.quiltparsers"

configurations = [project.configurations.shadowCommon]
archiveClassifier.set("dev-shadow")
}
Expand Down
8 changes: 4 additions & 4 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ loaderVersion = "[40,)"
license = "Apache-2.0"

[[mods]]
modId = "azusa_config"
modId = "azusaconfig"
version = "${version}"
displayName = "AzusaConfig"
credits = "QuiltMC"
authors = "TexTrue, HO-Artisan"
description = '''
A library to bring the Quilt Loader's Config system into Fabric/Forge/NeoForge.
'''
#logoFile = ""
logoFile = "icon.png"

[[dependencies.azusa_config]]
[[dependencies.azusaconfig]]
modId = "forge"
mandatory = true
versionRange = "[47,)"
ordering = "NONE"
side = "BOTH"

[[dependencies.azusa_config]]
[[dependencies.azusaconfig]]
modId = "minecraft"
mandatory = true
versionRange = "[1.20,)"
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ fabric_loader_version=0.15.2
fabric_api_version=0.91.0+1.20.1

forge_version=1.20.1-47.2.20

curseforge_id=970148
modrinth_id=12LahGY4

0 comments on commit aba5846

Please sign in to comment.