From 017e70aad85ba31f0fb182faa827a259104be6f8 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 4 Nov 2024 12:51:08 +0100 Subject: [PATCH] tidy up imports (#405) --- .../org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala index c9ff2a1b..25c480ec 100644 --- a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala +++ b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala @@ -120,7 +120,6 @@ abstract class AbstractGenerateMojo @Inject() (buildContext: BuildContext) exten @BeanProperty var generatePlayServer: Boolean = _ - import scala.collection.JavaConverters._ @BeanProperty var generatorSettings: java.util.Map[String, String] = _ @@ -179,6 +178,7 @@ abstract class AbstractGenerateMojo @Inject() (buildContext: BuildContext) exten if (schemas.isEmpty) { getLog.info("No changed or new .proto-files found in [%s], skipping code generation".format(generatedSourcesDir)) } else { + import scala.collection.JavaConverters._ val loadedExtraGenerators = extraGenerators.asScala.map(cls => Class.forName(cls).getDeclaredConstructor().newInstance().asInstanceOf[CodeGenerator])