溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

37. moquette自定義插件編譯打包

發(fā)布時間:2020-08-02 12:13:12 來源:網絡 閱讀:874 作者:rongwei84n 欄目:軟件技術

一. 前言

在下載,編譯,運行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代表添加的插件模塊

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經查實,將立刻刪除涉嫌侵權內容。

AI