diff --git a/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy b/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy index 687ff4b10..0df9a7a85 100644 --- a/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy +++ b/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy @@ -182,7 +182,7 @@ class PekkoGrpcPlugin implements Plugin { } String autodetectScala() { - def cfg = project.configurations.compileClasspath.copyRecursive() + def cfg = project.configurations.compileClasspath.copyRecursive(duplicatesStrategy=DuplicateStrategy.WARN) def scalaVersions = cfg.incoming.resolutionResult.allDependencies .findAll { it.requested.class != DefaultProjectComponentSelector }