thirty-seven。 Moquette custom plug-in compilation and packaging
one。 Preface
After downloading, compiling, and running the moquette source code, you must want to add your own logic. But do not want to modify the source code too much, for future upgrades.
So it's best to make another plug-in, a separate jar package.
Moquette source code compilation:
Http://483181.blog.51cto.com/473181/1959276
two。 Modify the build.gradle of distribution
Dependencies {compile project (': moquette-broker') compile project (': xxx') compile project (': moquette-h3-storage') compile project (': moquette-mapdb-storage')}
three。 Modify settings.gradle
RootProject.name = 'moquette-parent'include': moquette-broker'include': xxx'...project (': moquette-broker'). ProjectDir = "$rootDir/broker" as Fileproject (': xxx'). ProjectDir = "$rootDir/xxx" as File
Xxx represents the added plug-in module