You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2024/11/04 11:51:14 UTC

(pekko-grpc) branch main updated: tidy up imports (#405)

This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git


The following commit(s) were added to refs/heads/main by this push:
     new 017e70aa tidy up imports (#405)
017e70aa is described below

commit 017e70aad85ba31f0fb182faa827a259104be6f8
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Mon Nov 4 12:51:08 2024 +0100

    tidy up imports (#405)
---
 .../main/scala/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])


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org