tony
03/19/2024, 5:35 PMguice-4.2.2-no_aop.jar as a transitive dependency. (com.google.inject:guice:4.2.2)
I have a java-platform that constrains guice to 6.0.0. These two requirements combined have gradle looking for guice-6.0.0-no_aop.jar, which doesn't exist. What's the simplest way to tell gradle to drop the no_aop classifier when trying to resolve guice?tony
03/19/2024, 5:40 PMtony
03/19/2024, 6:01 PMconfigurations.all {
resolutionStrategy {
eachDependency {
if (requested.group == "com.google.inject" && requested.name == "guice") {
artifactSelection {
selectArtifact(DependencyArtifact.DEFAULT_TYPE, null, null)
}
}
}
}
}