Skip to content

Commit 7f56926

Browse files
committed
Fix condition for non-JVM projects (#417)
1 parent ba4603f commit 7f56926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle-plugin/src/main/kotlin/kotlinx/rpc/grpc/DefaultGrpcExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ internal open class DefaultGrpcExtension @Inject constructor(
8181
@Suppress("detekt.LongMethod", "detekt.CyclomaticComplexMethod", "detekt.ThrowsCount")
8282
private fun Project.configureTasks(protoSourceSet: DefaultProtoSourceSet) {
8383
// todo remove after KRPC-180
84-
if (!protoSourceSet.languageSourceSets.isPresent) {
84+
if (!protoSourceSet.languageSourceSets.isPresent || protoSourceSet.languageSourceSets.get().isEmpty()) {
8585
logger.debug(
8686
"Language source sets are not set for proto source set '${protoSourceSet.name}', " +
8787
"skipping buf tasks configuration"

0 commit comments

Comments
 (0)