mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -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
(cherry picked from commit a404f47683
)
This commit is contained in:
parent
6bc3f52d3f
commit
06178adbda
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
Add a link
Reference in a new issue