You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "win5do (via GitHub)" <gi...@apache.org> on 2023/05/11 13:01:02 UTC

[GitHub] [dubbo] win5do opened a new issue, #12296: DubboGrpcGenerator output java code not format.

win5do opened a new issue, #12296:
URL: https://github.com/apache/dubbo/issues/12296

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [x] I have searched the [release notes](https://github.com/apache/dubbo/releases) of this repository and believe that this is not a duplicate.
   
   ## Describe the feature
   <!-- Please also discuss possible business value -->
   ![image](https://github.com/apache/dubbo/assets/22112659/c37a303a-dbeb-4d06-b0d2-dc34f95e0a61)
   ![image](https://github.com/apache/dubbo/assets/22112659/8bda1501-c6c4-49ed-b0f7-286a0f95845e)
   
   ```xml
           <dubbo.version>2.7.7</dubbo.version>
           <dubbo.compiler.version>3.1.10</dubbo.compiler.version>
           <spring.version>4.3.16.RELEASE</spring.version>
           <grpc.version>1.34.1</grpc.version>
           <protoc.version>3.21.9</protoc.version>
           <protoc.third_party>./</protoc.third_party>
           <protobuff-java.version>3.21.9</protobuff-java.version>
   
   
               <plugin>
                   <groupId>org.xolstice.maven.plugins</groupId>
                   <artifactId>protobuf-maven-plugin</artifactId>
                   <version>0.6.1</version>
                   <configuration>
                       <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}
                       </protocArtifact>
                       <pluginId>grpc-java</pluginId>
                       <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
                       </pluginArtifact>
                       <outputDirectory>build/generated/source/proto/main/java</outputDirectory>
                       <clearOutputDirectory>false</clearOutputDirectory>
                       <protocPlugins>
                           <protocPlugin>
                               <id>dubbo-grpc</id>
                               <groupId>org.apache.dubbo</groupId>
                               <artifactId>dubbo-compiler</artifactId>
                               <version>${dubbo.compiler.version}</version>
                               <mainClass>org.apache.dubbo.gen.grpc.DubboGrpcGenerator</mainClass>
                           </protocPlugin>
                       </protocPlugins>
                       <additionalProtoPathElements>
                           <additionalProtoPathElement>${protoc.third_party}</additionalProtoPathElement>
                       </additionalProtoPathElements>
                   </configuration>
                   <executions>
                       <execution>
                           <goals>
                               <goal>compile</goal>
                               <goal>compile-custom</goal>
                               <goal>test-compile</goal>
                               <goal>test-compile-custom</goal>
                           </goals>
                       </execution>
                   </executions>
               </plugin>
   ```
   
   The java code format is confusing, can it be formatted and then generated?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #12296: DubboGrpcGenerator output java code not format.

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12296:
URL: https://github.com/apache/dubbo/issues/12296#issuecomment-1552629611

   Will be fixed in https://github.com/apache/dubbo/pull/12297


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org