Skip to content

Commit c6c423c

Browse files
Refactor Netty dependencies in pom.xml
Added dependency management for Netty BOM and removed direct Netty dependencies.
1 parent 1711bdd commit c6c423c

1 file changed

Lines changed: 10 additions & 23 deletions

File tree

pom.xml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -51,35 +51,22 @@
5151
</repository>
5252
</repositories>
5353

54+
<dependencyManagement>
55+
<dependency>
56+
<groupId>io.netty</groupId>
57+
<artifactId>netty-bom</artifactId>
58+
<version>4.2.12.Final</version>
59+
<type>pom</type>
60+
<scope>import</scope>
61+
</dependency>
62+
</dependencyManagement>
63+
5464
<dependencies>
55-
<dependency>
56-
<groupId>io.netty</groupId>
57-
<artifactId>netty-all</artifactId>
58-
<version>4.2.12.Final</version>
59-
<scope>compile</scope>
60-
</dependency>
61-
<dependency>
62-
<groupId>io.netty</groupId>
63-
<artifactId>netty-codec-haproxy</artifactId>
64-
<version>4.2.12.Final</version>
65-
<scope>compile</scope>
66-
<optional>true</optional>
67-
</dependency>
6865
<dependency>
6966
<groupId>com.github.GeyserMC</groupId>
7067
<artifactId>packetlib</artifactId>
7168
<version>1.8</version>
7269
<scope>compile</scope>
73-
<exclusions>
74-
<exclusion>
75-
<groupId>io.netty</groupId>
76-
<artifactId>netty-all</artifactId>
77-
</exclusion>
78-
<exclusion>
79-
<groupId>io.netty</groupId>
80-
<artifactId>netty-codec-haproxy</artifactId>
81-
</exclusion>
82-
</exclusions>
8370
</dependency>
8471
<dependency>
8572
<groupId>com.alibaba.fastjson2</groupId>

0 commit comments

Comments
 (0)