importsAllFrom

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

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.

Example:

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