Adds a proto import dependency from within KotlinSourceSet.dependencies.
Proto files (.proto) from the resolved archives will be available as imports only, but will not be used for code generation.
Example:
kotlin.sourceSets {
commonMain {
dependencies {
protoImport("com.example:common-protos:1.0")
}
}
}Content copied to clipboard
fun KotlinDependencyHandler.protoImport(dependencyNotation: String, action: ExternalModuleDependency.() -> Unit): Dependency?(source)
fun KotlinDependencyHandler.protoImport(dependencyNotation: String, action: Action<ExternalModuleDependency>): Dependency?(source)
Adds a proto import dependency from within KotlinSourceSet.dependencies.
Proto files (.proto) from the resolved archives will be available as imports only, but will not be used for code generation.
Example:
kotlin.sourceSets {
commonMain {
dependencies {
protoImport("com.example:common-protos:1.0") { ... }
}
}
}Content copied to clipboard
fun <T : Dependency> KotlinDependencyHandler.protoImport(dependency: T, configure: T.() -> Unit): T(source)
fun <T : Dependency> KotlinDependencyHandler.protoImport(dependency: T, action: Action<T>): T(source)
Adds a proto import dependency from within KotlinSourceSet.dependencies.
Proto files (.proto) from the resolved archives will be available as imports only, but will not be used for code generation.
Example:
kotlin.sourceSets {
commonMain {
dependencies {
protoImport(dependency) { ... }
}
}
}Content copied to clipboard