You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace `VertxGrpcGeneratorImpl` with a new modular architecture for better maintainability.
- Update Protobuf plugin configuration in `pom.xml` to reflect new plugin structure with `io.github.ascopes`.
Signed-off-by: Daniel Fiala <danfiala23@gmail.com>
1. **Protocol Buffer compiler artifact** (`protocArtifact`) - Required for compiling `.proto` files into Java classes
82
-
2. **gRPC Java plugin** (`pluginId` and `pluginArtifact`) - Generates standard gRPC Java stubs, essential when using the `--grpc-io` option
83
-
3. **Vert.x gRPC plugin** (`protocPlugins`) - Generates Vert.x-specific gRPC client and service classes
84
-
4. **Output configuration** - Specifies where generated Java files will be placed (`src/main/java`)
85
-
5. **Compilation goals** - Defines which Maven goals to execute (`compile` and `compile-custom`)
86
-
87
-
For more details, see the https://www.xolstice.org/protobuf-maven-plugin/[xolstice protobuf-maven-plugin documentation].
71
+
This plugin uses `protocVersion` instead of platform-specific artifacts and takes care of downloading protoc based on your platform and version on its own.
88
72
89
-
The `${os.detected.classifier}` property is used to make the build OS independent, on OSX it is replaced
90
-
by _osx-x86_64_ and so on. To use it you need to add the os-maven-plugin[https://github.com/trustin/os-maven-plugin]
91
-
in the `build` section of your `pom.xml`:
73
+
For more details, see the https://ascopes.github.io/protobuf-maven-plugin/[ascopes protobuf-maven-plugin documentation].
92
74
93
75
[source,xml]
94
76
----
@@ -111,66 +93,23 @@ By default, the plugin generates both client and service files. If you need only
This plugin uses `protocVersion` instead of platform-specific artifacts and takes care of downloading protoc based on your platform and version on its own.
161
-
162
-
For more details, see the https://ascopes.github.io/protobuf-maven-plugin/[ascopes protobuf-maven-plugin documentation].
163
104
164
105
=== Arguments:
165
106
166
-
- _--grpc-client_: generate the client files
167
-
- _--grpc-service_: generate the service files
168
-
- _--grpc-io_: generate stub files compatible with `io.grpc:grpc-stub`, not generated by default. When using this option, you must also ensure the grpc-java plugin is configured (as shown in the Maven configuration above)
169
-
- _--grpc-transcoding_: whether to generate transcoding options for methods with HTTP annotations
170
-
- _--vertx-codegen_: whether to add Vert.x annotations to the generated classes (`@VertxGen`) By default, this is disabled
171
-
- _--service-prefix_: generate service classes with a prefix. For example, if you set it to `MyService`, the generated service class will be `MyServiceGreeterService` instead of `GreeterService`.
172
-
- _--help_: show help message
173
-
- _--version_: show version information
107
+
- _grpc-client_: generate the client files
108
+
- _grpc-service_: generate the service files
109
+
- _grpc-io_: generate stub files compatible with `io.grpc:grpc-stub`, not generated by default. When using this option, you must also ensure the grpc-java plugin is configured (as shown in the Maven configuration above)
110
+
- _grpc-transcoding_: whether to generate transcoding options for methods with HTTP annotations
111
+
- _vertx-codegen_: whether to add Vert.x annotations to the generated classes (`@VertxGen`) By default, this is disabled
112
+
- _service-prefix_: generate service classes with a prefix. For example, if you set it to `MyService`, the generated service class will be `MyServiceGreeterService` instead of `GreeterService`.
174
113
175
114
If no specific generation options are provided, both client and service files will be generated by default. By default, all extensions (currently only 'http') are supported.
0 commit comments