Right click
on the root project "Kessoku-Lib", select New->Module in the context menu, create "package/common", "package/fabric "package/common", "package/fabric", "package/neo" (package
refers to the module name);- Copy and paste the gradle script files under
gradle/example
to their respective modules (common
topackage/common
,fabric
topackage/fabric
, andneo
topackage/neo
); - Check that
settings.gradle
has added the modules you just added, and it's fine if it hasn't; - Synchronizing the gradle
- If you want to add module dependencies use
kessoku.moduleImpl(project("module-name", "common"))
. - Finally, add include to
fabric
andneo
.
- 在根项目“Kessoku-Lib”上
右键
,在右键菜单中选择新建->模块
, 新建“package/common”,“package/fabric”,“package/neo”(package
指的是模块名称); - 复制粘贴
gradle/example
下的gradle脚本文件到各自所属模块(common复制common文件夹内的到package/common
模块,fabric复制fabric文件夹内的到package/fabric
,neo复制neo文件夹内的到package/neo
); - 检查
settings.gradle
是否添加了刚才的模块,没有添加即可; - 同步gradle
- 如果要添加模块依赖请用
kessoku.moduleImpl("模块名", "common")
- 最后在
fabric
和neo
添加include(请用kessoku.moduleInclude(("模块名", "modloader"))
)