Skip to content

Commit

Permalink
Depend on Fabric API (#449)
Browse files Browse the repository at this point in the history
* Make it depend on FAPI

* Forge dep
  • Loading branch information
Madis0 authored Dec 8, 2023
1 parent e131b93 commit 644bb6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
10 changes: 2 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ dependencies {
modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}") {
exclude(group: "net.fabricmc.fabric-api")
}

include(fabricApi.module("fabric-api-base", project.fabric_version))
modImplementation include(fabricApi.module("fabric-networking-api-v1", project.fabric_version))
modImplementation include(fabricApi.module("fabric-screen-api-v1", project.fabric_version))
modImplementation include(fabricApi.module("fabric-rendering-v1", project.fabric_version))
modImplementation include(fabricApi.module("fabric-resource-loader-v0", project.fabric_version))
}

sourceSets.remove(sourceSets.test)
Expand Down Expand Up @@ -158,7 +152,7 @@ curseforge {
addGameVersion 'Java 17'

relations {
embeddedLibrary 'fabric-api'
requiredDependency 'fabric-api'
optionalDependency 'modmenu'
optionalDependency 'cloth-config'
}
Expand Down Expand Up @@ -190,7 +184,7 @@ modrinth {

dependencies {
// The scope can be `required`, `optional`, or `incompatible`
embedded.project "fabric-api"
required.project "fabric-api"
optional.project "modmenu"
optional.project "cloth-config"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cloth_config_version=12.0.111

# Dependencies in mods.toml
dep_forge=[37,)
dep_minecraft=[1.19.4,)
dep_minecraft=[1.20.3,)

# Publishing
curse_id=634062
Expand Down
7 changes: 2 additions & 5 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@

"depends": {
"fabricloader": ">=0.14.6",
"fabric-networking-api-v1": "*",
"fabric-screen-api-v1": "*",
"fabric-rendering-v1": "*",
"fabric-resource-loader-v0": "*",
"minecraft": [ ">=1.20" ],
"fabric-api": "*",
"minecraft": [ ">=1.20.3" ],
"java": ">=17"
},
"suggests": {},
Expand Down

0 comments on commit 644bb6b

Please sign in to comment.