[Fix][Add][Dependency] Framework-Mirai 修复框架描述文件的规范错误, 添加 package 打包插件;

[Fix] framework.json 修复描述文件对必须版本要求(requiresVersion)的规范错误;
[Add][Dependency] Framework-Mirai/pom.xml 添加 maven-assembly-plugin 插件以打包所需依赖项(模块是单独的, 并非与其他模块一起打包);
This commit is contained in:
LamGC 2020-11-22 10:58:45 +08:00
parent 82c97cc924
commit b0041d7d9d
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D
2 changed files with 26 additions and 1 deletions

View File

@ -42,6 +42,31 @@
</repository> </repository>
</repositories> </repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>net.lamgc</groupId> <groupId>net.lamgc</groupId>

View File

@ -2,7 +2,7 @@
"id": "cgj-mirai", "id": "cgj-mirai",
"description": "ContentGrabbingJi官方实现的, 基于 Mirai 框架的QQ平台组件", "description": "ContentGrabbingJi官方实现的, 基于 Mirai 框架的QQ平台组件",
"version": "3.0.0-alpha", "version": "3.0.0-alpha",
"requiresVersion": "=>3.0.0", "requiresVersion": "3.0.0",
"provider": "Github@LamGC, Github@mamoe", "provider": "Github@LamGC, Github@mamoe",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"frameworkClass": "net.lamgc.cgj.bot.framework.mirai.MiraiMain", "frameworkClass": "net.lamgc.cgj.bot.framework.mirai.MiraiMain",