You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/03/24 03:44:44 UTC

[GitHub] [dubbo] guohao opened a new issue #9836: [3.0 comipler] Support compiler with protobuf-gradle-plugin

guohao opened a new issue #9836:
URL: https://github.com/apache/dubbo/issues/9836


   <!-- 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.
   
   ## Describe the proposal
   Dubbo has a maven compiler plugin for generating protos, but the [protobuf-gradle-plugin](https://github.com/google/protobuf-gradle-plugin) does not support specifing `MainClass` . So Dubbo's compiler can not work with gradle. Hoping anyone can help to fix it.
   
   Here are some candidate solutions
   - Publish multiple maven plugins with determined `MainClass`
   - Write a build script teplate for generating Dubbo proto files
   - Write a plugin like [akka](https://plugins.gradle.org/plugin/com.lightbend.akka.grpc.gradle)
   - Support `MainClass` in `protobuf-gradle-plugin`
   
   <!-- Please use this for a concrete design proposal for functionality. -->
   <!-- If you just want to request a new feature and discuss the possible business value, create a Feature Request. -->
   


-- 
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


[GitHub] [dubbo] EarthChen commented on issue #9836: [3.0 comipler] Support compiler with protobuf-gradle-plugin

Posted by GitBox <gi...@apache.org>.
EarthChen commented on issue #9836:
URL: https://github.com/apache/dubbo/issues/9836#issuecomment-1077038267


   https://github.com/google/protobuf-gradle-plugin/issues/455


-- 
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


[GitHub] [dubbo] EarthChen commented on issue #9836: [3.0 comipler] Support compiler with protobuf-gradle-plugin

Posted by GitBox <gi...@apache.org>.
EarthChen commented on issue #9836:
URL: https://github.com/apache/dubbo/issues/9836#issuecomment-1077040024


   > Publish multiple maven plugins with determined MainClass
   
   This approach is definitely feasible and simple to implement, but not very elegant (not recommended)
   
   > Write a build script teplate for generating Dubbo proto files
   
   This way also looks relatively simple, but do not know how to start.
   
   > Write a plugin like [akka](https://plugins.gradle.org/plugin/com.lightbend.akka.grpc.gradle)
   
   Too complicated,(not recommended
   
   > Support MainClass in protobuf-gradle-plugin
   
   In my opinion, this method is better and can be consistent with `mvn` plug-in usage


-- 
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


[GitHub] [dubbo] EarthChen edited a comment on issue #9836: [3.0 comipler] Support compiler with protobuf-gradle-plugin

Posted by GitBox <gi...@apache.org>.
EarthChen edited a comment on issue #9836:
URL: https://github.com/apache/dubbo/issues/9836#issuecomment-1077040024


   > Publish multiple maven plugins with determined MainClass
   
   This way is definitely feasible and simple to implement, but not very elegant (not recommended)
   
   > Write a build script teplate for generating Dubbo proto files
   
   This way also looks relatively simple, but do not know how to start.
   
   > Write a plugin like [akka](https://plugins.gradle.org/plugin/com.lightbend.akka.grpc.gradle)
   
   Too complicated,(not recommended
   
   > Support MainClass in protobuf-gradle-plugin
   
   In my opinion, this method is better and can be consistent with `mvn` plug-in usage


-- 
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