Skip to content

Commit

Permalink
Check ommc dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrix-Shen committed Sep 27, 2023
1 parent 39d48f7 commit ccf1637
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ dependencies {

// Misc
runtimeOnly(project(path: ":fabricWrapper"))
runtimeOnly("com.github.Nyan-Work.oh-my-minecraft-client:ommc:${project.ommc_version}")
}

group(project.mod_maven_group)
Expand Down Expand Up @@ -203,7 +204,8 @@ processResources {
"mod_license" : project.mod_license,
"mod_name" : project.mod_name,
"mod_sources" : project.mod_sources,
"mod_version" : project.version
"mod_version" : project.version,
"ommc_dependency" : project.ommc_dependency,
])
}
}
Expand Down
1 change: 1 addition & 0 deletions fabricWrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ processResources {
"mod_name" : project.mod_name,
"mod_version" : project.version,
"mod_sources" : project.mod_sources,
"ommc_dependency" : project.ommc_dependency
])
}

Expand Down
3 changes: 2 additions & 1 deletion fabricWrapper/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
},
"depends": {
"malilib": "*",
"magiclib": ">=${magiclib_dependency}"
"magiclib": ">=${magiclib_dependency}",
"ommc": ">=${ommc_dependency}"
},
"custom": {
"modmenu:clientsideOnly": true
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mod_version=0.2
magiclib_dependency=0.7.387
magiclib_version=0.7.387
# Oh My Minecraft Client
ommc_dependency=0.5.319
ommc_version=nyan-work~dev.41

# Annotation processor
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"depends": {
"malilib": "*",
"minecraft": "${minecraft_dependency}",
"magiclib-${minecraft_version_id}": ">=${magiclib_dependency}"
"magiclib-${minecraft_version_id}": ">=${magiclib_dependency}",
"ommc-${minecraft_version_id}": ">=${ommc_dependency}"
},
"custom": {
"modmenu:clientsideOnly": true,
Expand Down

0 comments on commit ccf1637

Please sign in to comment.