Gradle dsl to specify the mainClass for protocPlugin
mahieddine opened this issue · 6 comments
Hi,
I'm trying to rewrite this maven build script into gradle and i'm stuck with this section :
<protocPlugins>
<protocPlugin>
<id>quarkus-grpc-protoc-plugin</id>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-grpc-protoc-plugin</artifactId>
<version>1.10.5.Final</version>
<mainClass>io.quarkus.grpc.protoc.plugin.MutinyGrpcGenerator</mainClass>
</protocPlugin>
</protocPlugins>
How can we specify the mainClass for pure java plugins ?
Unfortunately, it only supports uber jar plugins now 😢 and requires the plugin jar specifies the main class in its manifest. We will probably add a mainClass API as that for the maven plugin, but we cannot foresee when that will happen.
/cc @Scottmitch
Thank you for the confirmation, yeah it would be awesome if we can do that, the only temporary workaround that i found for the moment is to download the plugin jar, set the main class into the manifest and use that local version and it indeed work perfectly.
I just wanted to touch base on this issue. Are PRs welcome to implement this feature? Or is it on the roadmap?
I just wanted to touch base on this issue. Are PRs welcome to implement this feature? Or is it on the roadmap?
Sure, PRs are welcome.
I have same problem . hope this feature will be completed soon。now i use maven gen code with idl file,and coding in gradle project..