Robert
12/18/2018, 8:53 AMdwursteisen
12/18/2018, 9:53 AMRobert
12/18/2018, 10:03 AMdwursteisen
12/18/2018, 10:07 AMsrc/main/proto
.dwursteisen
12/18/2018, 10:07 AM<our module>/src/main/proto
)dwursteisen
12/18/2018, 10:08 AMsourceSets {
getByName("main").java.srcDirs(
"src/main/proto",
file("${protobuf.protobuf.generatedFilesBaseDir}/main/java")
)
}
Robert
12/18/2018, 10:09 AMRobert
12/18/2018, 5:09 PMLine 115: getByName("commonMain").java.srcDirs(
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val <T> KClass<???>.java: Class<???> defined in kotlin.jvm
public val Project.java: JavaPluginConvention defined in org.gradle.kotlin.dsl
public val PluginDependenciesSpec.java: PluginDependencySpec defined in org.gradle.kotlin.dsl
Robert
12/18/2018, 5:10 PM.java
Robert
12/18/2018, 5:18 PMsourceSets.apply {
getByName("commonMain").proto.srcDirs(
"src/main/proto",
file("${protobuf.protobuf.generatedFilesBaseDir}/main/java")
Robert
12/18/2018, 5:19 PMLine 115: getByName("commonMain").proto.srcDirs(
^ Function invocation 'proto(...)' expected
Line 115: getByName("commonMain").proto.srcDirs(
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun SourceSet.proto(action: ProtobufSourceDirectorySet.() -> Unit): Unit defined in com.google.protobuf.gradle
Robert
12/18/2018, 5:22 PMfun SourceSet.proto(action: ProtobufSourceDirectorySet.() -> Unit) {
(this as? ExtensionAware)
?.extensions
?.getByType(ProtobufSourceDirectorySet::class.java)
?.apply(action)
}
Robert
12/18/2018, 5:34 PMapply
, all no luck (https://github.com/googleapis/gapic-generator-kotlin/blob/58ce58c725ae8ab63fd3834a28866a9fdf73df68/example-api-cloud-clients/build.gradle.kts)
It really seems to have to do with the project being multiplatform/no java?dwursteisen
12/18/2018, 7:24 PMoctylFractal
12/18/2018, 7:31 PMoctylFractal
12/18/2018, 7:32 PM