Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

thirty-seven。 Moquette custom plug-in compilation and packaging

Shulou Source: shulou.com Published: 2022-06-03 02:41:20 10月04日 Update

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

Tags: Source code plug-ins compilation representative preface best modules too many logic upgrade affirmation run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MySQL OPPO Reno Shulou Tech Info NVidia