importsAllFrom

Available in a dev version: 0․11․0-grpc-190

How to configure

abstract fun importsAllFrom(protoSourceSets: Provider<List<ProtoSourceSet>>)(source)

Proto files from protoSourceSets will be available as import, but will not be used for code generation. Their BSR module dependencies are included as well, and the first buf.lock file found among them, if any, is adopted.

Example:

kotlin.sourceSets {
val someProto = create("someProto")
commonMain {
proto {
importsAllFrom(project.provider { protoSourceSets.filter { it.name == someProto.name } })
}
}
}