proto

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

How to configure

fun KotlinSourceSet.proto(action: Action<ProtoSourceSet>)(source)
@JvmName(name = "proto_kotlin")
fun NamedDomainObjectProvider<KotlinSourceSet>.proto(action: Action<ProtoSourceSet>)(source)

Executes the given action on the proto source set for this KotlinSourceSet.


fun SourceSet.proto(action: Action<ProtoSourceSet>)(source)
fun NamedDomainObjectProvider<SourceSet>.proto(action: Action<ProtoSourceSet>)(source)

Executes the given action on the proto source set for this SourceSet.


fun KotlinDependencyHandler.proto(dependencyNotation: Any): Dependency?(source)

Adds a proto dependency for code generation from within KotlinSourceSet.dependencies.

Proto files (.proto) from the resolved archives will be included in code generation.

Example:

kotlin.sourceSets {
commonMain {
dependencies {
proto("com.example:shared-protos:1.0")
}
}
}

fun KotlinDependencyHandler.proto(dependencyNotation: String, action: ExternalModuleDependency.() -> Unit): Dependency?(source)
fun KotlinDependencyHandler.proto(dependencyNotation: String, action: Action<ExternalModuleDependency>): Dependency?(source)

Adds a proto dependency for code generation from within KotlinSourceSet.dependencies.

Proto files (.proto) from the resolved archives will be included in code generation.

Example:

kotlin.sourceSets {
commonMain {
dependencies {
proto("com.example:shared-protos:1.0") { ... }
}
}
}

fun <T : Dependency> KotlinDependencyHandler.proto(dependency: T, configure: T.() -> Unit): T(source)
fun <T : Dependency> KotlinDependencyHandler.proto(dependency: T, action: Action<T>): T(source)

Adds a proto dependency for code generation from within KotlinSourceSet.dependencies.

Proto files (.proto) from the resolved archives will be included in code generation.

Example:

kotlin.sourceSets {
commonMain {
dependencies {
proto(dependency) { ... }
}
}
}

val KotlinSourceSet.proto: ProtoSourceSet(source)
@get:JvmName(name = "proto_kotlin")
val NamedDomainObjectProvider<KotlinSourceSet>.proto: Provider<ProtoSourceSet>(source)

Returns the proto source set for this KotlinSourceSet.


val SourceSet.proto: ProtoSourceSet(source)
val NamedDomainObjectProvider<SourceSet>.proto: Provider<ProtoSourceSet>(source)

Returns the proto source set for this SourceSet.