Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0 comipler] Support compiler with protobuf-gradle-plugin #9836

Open
1 task done
guohao opened this issue Mar 24, 2022 · 2 comments
Open
1 task done

[3.0 comipler] Support compiler with protobuf-gradle-plugin #9836

guohao opened this issue Mar 24, 2022 · 2 comments
Labels
help wanted Everything needs help from contributors type/proposal Everything you want Dubbo have

Comments

@guohao
Copy link
Contributor

guohao commented Mar 24, 2022

  • I have searched the 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 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 template for generating Dubbo proto files
  • Write a plugin like akka
  • Support MainClass in protobuf-gradle-plugin
@guohao guohao added type/proposal Everything you want Dubbo have help wanted Everything needs help from contributors labels Mar 24, 2022
@EarthChen
Copy link
Member

@EarthChen
Copy link
Member

EarthChen commented Mar 24, 2022

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Everything needs help from contributors type/proposal Everything you want Dubbo have
Projects
None yet
Development

No branches or pull requests

2 participants