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

Urgent Assistance Request for Protogen Tool #17

Open
Bahri-Adem opened this issue Apr 17, 2024 · 3 comments
Open

Urgent Assistance Request for Protogen Tool #17

Bahri-Adem opened this issue Apr 17, 2024 · 3 comments

Comments

@Bahri-Adem
Copy link

Bahri-Adem commented Apr 17, 2024

Dear SuduIDE,

I hope you're doing well. I'm a master's student working on my thesis, and I've encountered difficulties in getting your Protogen tool to work with both Maven and Gradle. This tool is crucial for my research, and having it operational would greatly aid me.

Could you please provide guidance or assistance on how to properly configure and use Protogen? Your support would be immensely valuable to me, as I'm pressed for time and in need of this plugin for my thesis work.

Thank you for your help.

Looking forward to your guidance and support.

Best regards,
Adem Bahri

image
And here is my plugin:
image

The readme seems to be not so clear !

@Duzhinsky
Copy link
Contributor

Hi there! Protogen is a tool designed primarily for the internal needs of SuduIDE with its specifics. At the moment, the status of its public support is unknown. Also, It was not designed for use with maven.

As far as I can see, you are using the options dependency as an executable in the plugin, however it should be a general dependency of your project.

To understand your problem, I need to know more. What is going wrong?

@Bahri-Adem
Copy link
Author

Bahri-Adem commented Apr 18, 2024 via email

@Duzhinsky
Copy link
Contributor

Duzhinsky commented Apr 21, 2024

Hello, again. I've tried researching about building with maven. Here is the correct configuration for linking protobuf plugins.

<configuration>
	<outputDirectory>${basedir}/target/generated-sources/protobuf/java</outputDirectory>
	<protocArtifact>com.google.protobuf:protoc:3.18.0:exe:osx-aarch_64</protocArtifact>
	<protocPlugins>
		<protocPlugin>
			<id>protogen</id>
			<groupId>io.github.suduide</groupId>
			<artifactId>protoc-gen-protogen</artifactId>
			<version>1.0.18</version>
			<mainClass>org.sudu.protogen.Main</mainClass>
		</protocPlugin>
	</protocPlugins>
</configuration>

But it won't work because the the artifact is not published as maven plugin expects, i.e. io.github.suduide:protoc-gen-protogen:jar:1.0.18.

Currently I am not a maintainer of the repository, so fixing it is not easy. Here is what I could suggest you:

  • Switch to Gradle and use the documented way to get started. Please note that the Kotlin DSL is used.
  • Fork the tool and build it on your own.

The latter is the most preferable because Protogen is designed for SuduIDE team conventions of working with gRPC. I have considered a community version with a flexible interface like the Spring OpenAPI Generator has, but it is still a plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants