本帖最后由 Himmelt 于 2020-1-8 22:11 编辑
在用 gradle 构建多模块 sponge 插件时可能遇到下面问题
警告: The following extra plugin IDs were not found: [xxxx]
同时导致生成的 mcmod.info 会多出一个modid (当然,如果在代码注解里写的是同样的id就不会了)
复制代码
解决方案:
在插件模块的 build.gradle 中添加如下代码,id 填代码注解中一样的。复制代码
在用 gradle 构建多模块 sponge 插件时可能遇到下面问题
警告: The following extra plugin IDs were not found: [xxxx]

同时导致生成的 mcmod.info 会多出一个modid (当然,如果在代码注解里写的是同样的id就不会了)
- [
- {
- "modid": "xxx1",
- "name": "XXX1",
- "version": "1.2.0",
- "description": "XXX Plugin",
- "authorList": [
- "Himmelt"
- ],
- "dependencies": [
- "griefprevention",
- "[email protected]",
- "[email protected]"
- ],
- "requiredMods": [
- "[email protected]",
- "[email protected]"
- ]
- },
- {
- "modid": "xxx2",
- "name": "XXXX2",
- "version": "1.2.0"
- }
- ]
解决方案:
在插件模块的 build.gradle 中添加如下代码,id 填代码注解中一样的。
- sponge {
- plugin {
- id = 'violet'
- }
- }