mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-05 19:47:00 -04:00
Fix example implementation of using FAPI modules for Groovy (#1237)
* Fix example implementation of using FAPI modules for Groovy The previous implementation does not quite correctly describe what it does * Improve description of adding dependencies * Undo the last commit changes for Kotlin DSL
This commit is contained in:
parent
ae85d92960
commit
a404f47683
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ modImplementation "net.fabricmc.fabric-api:fabric-api:FABRIC_API_VERSION"
|
|||
modImplementation("net.fabricmc.fabric-api:fabric-api:FABRIC_API_VERSION")
|
||||
```
|
||||
|
||||
Alternatively, modules from Fabric API can be specified individually as shown below:
|
||||
Alternatively, modules from Fabric API can be specified individually as shown below (including module jar to your mod jar):
|
||||
|
||||
### Groovy DSL
|
||||
|
||||
|
@ -54,7 +54,7 @@ Set<String> apiModules = [
|
|||
|
||||
// Add each module as a dependency
|
||||
apiModules.forEach {
|
||||
modImplementation(fabricApi.module(it, FABRIC_API_VERSION))
|
||||
include(modImplementation(fabricApi.module(it, FABRIC_API_VERSION)))
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue