Skip to content

Commit 723fc2c

Browse files
author
LewUwU
authored
Update NettyVersion.java (#1438)
The issue was caused due to a change in the pom of netty (for dependencies) (#Generated by netty-parent/pom.xml #Mon, 11 Oct 2021 13:22:16 +0200 netty-all.version=4.1.69.Final netty-all.buildDate=2021-10-11 13\:22\:16 +0200 netty-all.commitDate=2021-10-11 09\:21\:07 +0000 netty-all.shortCommitHash=34a31522f0 netty-all.longCommitHash=34a31522f0145e2d434aaea2ef8ac5ed8d1a91a0 netty-all.repoStatus=dirty) Is not more netty-common, now is netty-all
1 parent dd687ce commit 723fc2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/com/comphenix/protocol/utility/NettyVersion.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import java.util.Map;
77

88
public class NettyVersion {
9-
private final static String NETTY_ARTIFACT_ID = "netty-common";
9+
private final static String NETTY_COMMON_ID = "netty-common";
10+
private final static String NETTY_ALL_ID = "netty-all";
1011
private static NettyVersion version;
1112

1213
public static NettyVersion getVersion() {
@@ -18,7 +19,10 @@ public static NettyVersion getVersion() {
1819

1920
private static NettyVersion detectVersion() {
2021
Map<String, Version> nettyArtifacts = Version.identify();
21-
Version version = nettyArtifacts.get(NETTY_ARTIFACT_ID);
22+
Version version = nettyArtifacts.get(NETTY_COMMON_ID);
23+
if(version == null) {
24+
version = nettyArtifacts.get(NETTY_ALL_ID);
25+
}
2226
if(version != null) {
2327
return new NettyVersion(version.artifactVersion());
2428
}

0 commit comments

Comments
 (0)