I have a dependency that has `guice-4.2.2-no_aop.j...
# dependency-management
t
I have a dependency that has
guice-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?
1
alright, this works
Copy code
configurations.all {
  resolutionStrategy {
    eachDependency {
      if (requested.group == "com.google.inject" && requested.name == "guice") {
        artifactSelection {
          selectArtifact(DependencyArtifact.DEFAULT_TYPE, null, null)
        }
      }
    }
  }
}
👍 1