public final class JkProtobuf
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
configure(dev.jeka.core.api.project.JkProject project)
Configures the specified project by appending a protobuf source generator.
|
static JkProtobuf |
of() |
JkProtobuf |
setExtraProtocOptions(java.lang.String extraProtocOptions)
Extra options to pass to protoc compiler.
|
JkProtobuf |
setProtobufVersion(java.lang.String protobufVersion)
The version of com.google.protobuf:protobuf-java to include in compile-time dependencies.
|
JkProtobuf |
setProtocVersion(java.lang.String protocVersion)
Version of protoc compiler.
|
JkProtobuf |
setProtoPath(java.lang.String protoPath)
The path (relative to project root) of directory containing the proto files.
|
public static JkProtobuf of()
public JkProtobuf setProtoPath(java.lang.String protoPath)
public JkProtobuf setProtocVersion(java.lang.String protocVersion)
public JkProtobuf setExtraProtocOptions(java.lang.String extraProtocOptions)
public JkProtobuf setProtobufVersion(java.lang.String protobufVersion)
If empty or null, this dependencies won't be included. The version will be resolved against coordinate 'com.google.protobuf:protobuf-java'.
public void configure(dev.jeka.core.api.project.JkProject project)