Skip to content

Commit 5a7d9c8

Browse files
authored
Merge pull request #47139 from geoand/#47134
Prevent false positive on quarkus.generate-code.grpc.kotlin.generate
2 parents dbf4d28 + 28adc26 commit 5a7d9c8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/config/GrpcCodeGenConfig.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
package io.quarkus.grpc.runtime.config;
22

3+
import java.util.Optional;
4+
35
import io.quarkus.runtime.annotations.ConfigPhase;
46
import io.quarkus.runtime.annotations.ConfigRoot;
57
import io.smallrye.config.ConfigMapping;
68
import io.smallrye.config.WithDefault;
9+
import io.smallrye.config.WithName;
710

811
/**
912
* not really used, here only to describe config options for code generation
@@ -39,4 +42,11 @@ public interface GrpcCodeGenConfig {
3942
*/
4043
@WithDefault("com.google.protobuf:protobuf-java")
4144
String scanForImports();
45+
46+
/**
47+
* Controls whether Kotlin code is generated when the {@code quarkus-kotlin} extension is present (in which case the default
48+
* is {@code true}).
49+
*/
50+
@WithName("kotlin.generate")
51+
Optional<Boolean> generateKotlin();
4252
}

0 commit comments

Comments
 (0)