一. 前言
在下载,编译,运行moquette源代码之后,肯定想加入自己的逻辑。但是又不想过多的修改源代码,为了以后的升级。
所以最好另外做个插件,单独的jar包
moquette源代码编译:
http://483181.blog.51cto.com/473181/1959276
二. 修改distribution的build.gradle
dependencies { compile project(':moquette-broker') compile project(':xxx') compile project(':moquette-h3-storage') compile project(':moquette-mapdb-storage') }
三. 修改settings.gradle
rootProject.name = 'moquette-parent' include ':moquette-broker' include ':xxx' ... project(':moquette-broker').projectDir = "$rootDir/broker" as File project(':xxx').projectDir = "$rootDir/xxx" as File
xxx代表添加的插件模块
原创文章,作者:kepupublish,如若转载,请注明出处:https://blog.ytso.com/196979.html