@@ -98,22 +98,22 @@ Java 8 or higher is required.
9898
9999#### Gradle
100100
101- If you use Gradle, just include the following inside your ` build.gradle ` file.
101+ If you use Gradle, just include the following inside your ` build.gradle(.kts) ` file.
102102
103103``` groovy
104104dependencies {
105- implementation group: ' com.hivemq', name: ' hivemq-mqtt-client', version: ' 1.2.2'
105+ implementation(" com.hivemq: hivemq-mqtt-client: 1.2.2")
106106}
107107```
108108
109109For optional features you can choose to include additional modules:
110110
111111``` groovy
112112dependencies {
113- implementation group: ' com.hivemq', name: ' hivemq-mqtt-client-websocket', version: ' 1.2.2'
114- implementation group: ' com.hivemq', name: ' hivemq-mqtt-client-proxy', version: ' 1.2.2'
115- implementation group: ' com.hivemq', name: ' hivemq-mqtt-client-epoll', version: ' 1.2.2'
116- implementation group: ' com.hivemq', name: ' hivemq-mqtt-client-reactor', version: ' 1.2.2'
113+ implementation(platform(" com.hivemq: hivemq-mqtt-client-websocket: 1.2.2"))
114+ implementation(platform(" com.hivemq: hivemq-mqtt-client-proxy: 1.2.2"))
115+ implementation(platform(" com.hivemq: hivemq-mqtt-client-epoll: 1.2.2"))
116+ implementation(" com.hivemq: hivemq-mqtt-client-reactor: 1.2.2")
117117}
118118```
119119
@@ -199,7 +199,7 @@ To use the shaded version just append `-shaded` to the artifact name.
199199
200200``` groovy
201201dependencies {
202- implementation group: ' com.hivemq', name: ' hivemq-mqtt-client-shaded', version: ' 1.2.2'
202+ implementation(" com.hivemq: hivemq-mqtt-client-shaded: 1.2.2")
203203}
204204```
205205
@@ -227,18 +227,18 @@ Snapshots can be obtained using [JitPack](https://jitpack.io/#hivemq/hivemq-mqtt
227227
228228``` groovy
229229repositories {
230- ...
231- maven { url 'https://jitpack.io' }
230+ ...
231+ maven { url 'https://jitpack.io' }
232232}
233233
234234dependencies {
235- implementation ' com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client:develop-SNAPSHOT'
236-
237- // snapshots for optional modules
238- implementation ' com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client-websocket:develop-SNAPSHOT'
239- implementation ' com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client-proxy:develop-SNAPSHOT'
240- implementation ' com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client-epoll:develop-SNAPSHOT'
241- implementation ' com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client-reactor:develop-SNAPSHOT'
235+ implementation(" com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client:develop-SNAPSHOT")
236+
237+ // snapshots for optional modules
238+ implementation(platform(" com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client-websocket:develop-SNAPSHOT"))
239+ implementation(platform(" com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client-proxy:develop-SNAPSHOT"))
240+ implementation(platform(" com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client-epoll:develop-SNAPSHOT"))
241+ implementation(" com.github.hivemq.hivemq-mqtt-client:hivemq-mqtt-client-reactor:develop-SNAPSHOT")
242242}
243243```
244244
0 commit comments