Skip to content

Commit

Permalink
add dependency YACL
Browse files Browse the repository at this point in the history
forge version can not launch due to a bug of the dependency.

SpongePowered/Mixin#497
FabricMC/Mixin#54
  • Loading branch information
Leawind committed Dec 31, 2023
1 parent 298cb64 commit 5cc2e01
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 18 deletions.
18 changes: 12 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,18 @@ allprojects {
group = rootProject.mod_group_id
repositories {
mavenLocal()
maven {
url 'https://maven.aliyun.com/repository/public'
}
maven {
url 'https://maven.aliyun.com/repository/google'
}

mavenCentral()
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }

// YACL
maven { url "https://maven.isxander.dev/releases" }
maven { url "https://maven.terraformersmc.com/releases" }
maven { url "https://maven.quiltmc.org/repository/release" }
maven { url "https://jitpack.io" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }

}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
Expand Down
2 changes: 2 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ dependencies {
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) {
transitive false
}
// YACL
modImplementation "dev.isxander.yacl:yet-another-config-lib-fabric:${yacl_mc_version}"
}
processResources {
inputs.property "version", project.version
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
Expand Up @@ -24,6 +24,7 @@
"depends": {
"fabric": "*",
"minecraft": ">=1.20.1",
"architectury": ">=9.1.12"
"architectury": ">=9.1.12",
"yet_another_config_lib_v3": ">=${yacl_version}"
}
}
2 changes: 2 additions & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ dependencies {
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) {
transitive = false
}
// YACL
modImplementation "dev.isxander.yacl:yet-another-config-lib-forge:${yacl_mc_version}"
}
processResources {
inputs.property "version", project.version
Expand Down
7 changes: 7 additions & 0 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ mandatory = true
versionRange = "[9.1.12,)"
ordering = "AFTER"
side = "BOTH"

[[dependencies."${mod_id}"]]
modId = "yet_another_config_lib_v3"
mandatory = true
versionRange = "[${yacl_version},)"
ordering = "NONE"
side = "CLIENT"
25 changes: 14 additions & 11 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# No quote for string
org.gradle.jvmargs = -Xmx2048M
# Mod properties
mod_name = Leawind's Third Person
mod_description = Improved third person
mod_id = leawind_third_person
mod_group_id = net.leawind.mc.thirdperson
mod_authors = Leawind
mod_version = 2.0.0-snapshot.2
mod_license = The MIT License (MIT)
mod_icon = assets/leawind_third_person/icon.png
mod_url_home = https://github.com/LEAWIND/Third-Person
mod_url_issue = https://github.com/LEAWIND/Third-Person/issue
# Minecraft Version
minecraft_version = 1.20.1
# Splited by , without space
enabled_platforms = fabric,forge
architectury_version = 9.1.12
yacl_mc_version = 3.2.1+1.20
yacl_version = 3.2.1
fabric_loader_version = 0.14.23
fabric_api_version = 0.90.4
forge_version = 47.2.1
# mod properties
mod_url_home = https://github.com/LEAWIND/Third-Person
mod_url_issue = https://github.com/LEAWIND/Third-Person/issue
mod_id = leawind_third_person
mod_authors = Leawind
mod_name = Leawind's Third Person
mod_description = Improved third person
mod_version = 2.0.0-snapshot.2
mod_license = The MIT License (MIT)
mod_icon = assets/leawind_third_person/icon.png
mod_group_id = net.leawind.mc.thirdperson

0 comments on commit 5cc2e01

Please sign in to comment.