Andrew Louis
05/28/2024, 2:24 PMconfigurations.all {
resolutionStrategy {
eachDependency {
if ("${requested.group}" == "io.netty") {
if (requested.name.startsWith("netty-tcnative")) {
useVersion("2.0.65.Final")
} else {
useVersion("4.1.109.Final")
}
}
}
}
}
Running ./gradlew app:dependencyInsight --dependency io.netty:netty-resolver-dns gives me 4.1.109.Final as expected ✅
io.netty:netty-resolver-dns:4.1.106.Final -> 4.1.109.Final
\--- com.linecorp.armeria:armeria:1.27.3
+--- com.linecorp.armeria:armeria-bom:1.27.3
| \--- compileClasspath
But when I open up the fat JAR and read the pom.properties for the dependency; I see the following:
From extracted/META-INF/maven/io.netty/netty-resolver-dns/pom.properties:
artifactId=netty-resolver-dns
groupId=io.netty
version=4.1.89.Final
How do I still have a 4.1.89 in there despite dependencyInsight indicating that I should have a 4.1.109.Final 🤯
This is my script for dumping the JAR deps btw -- https://gist.github.com/andrewloux/863434f893d29848f3a047f8f2093d90Adam
05/28/2024, 3:46 PMAdam
05/28/2024, 3:46 PMpom.properties file, so I guess that file is generated along with the fat JAR?Andrew Louis
05/28/2024, 3:49 PMAdam
05/28/2024, 3:49 PMAndrew Louis
05/28/2024, 3:51 PMAdam
05/28/2024, 3:51 PMAdam
05/28/2024, 3:53 PMAndrew Louis
05/28/2024, 3:54 PMAdam
05/28/2024, 3:57 PMAdam
05/28/2024, 3:59 PMAndrew Louis
05/28/2024, 4:02 PMAdam
05/28/2024, 4:11 PMio.netty:netty-common