ProtoSourceSet
Available in a dev version: 0․11․0-grpc-186
How to configure
Represents a source set for proto files.
Acts like a SourceDirectorySet but also allows configuring protoc plugins.
All source sets have kotlinMultiplatform and grpcKotlinMultiplatform plugins by default.
Example:
kotlin.sourceSets {
commonMain {
proto {
exclude("some.proto")
plugin { getByName("myPlugin") }
}
}
}Properties
A collection of proto files that are imported by this source set but do not belong to any other source set.
List of all imported proto source sets.
Protoc plugins that will be applied to proto files in this source set.
Functions
Proto source sets that this source set extends from. All proto files from protoSourceSet will be used for code generation. All imports protoSourceSet will be included as well.
Proto files from protoSourceSets will be available as import, but will not be used for code generation.
Proto files from protoSourceSet will be available as import, but will not be used for code generation.
Add a plugin to this source set and allows to configure it specifically for this source set.