Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Output Files Are Generated!!! #452

Open
prodbyola opened this issue Nov 5, 2023 · 1 comment
Open

No Output Files Are Generated!!! #452

prodbyola opened this issue Nov 5, 2023 · 1 comment

Comments

@prodbyola
Copy link
Contributor

prodbyola commented Nov 5, 2023

Building with Jetpack Compose and following this example: https://github.com/grpc/grpc-kotlin/blob/master/examples/stub/build.gradle.kts, I have tried to generate kotlin/java from proto declarations but it seems no output file is generated. I cannot find output files anywhere.

dependencies {
    //    GRPC Dependencies
    api("io.grpc:grpc-stub:${rootProject.ext["grpcVersion"]}")
    api("io.grpc:grpc-protobuf:${rootProject.ext["grpcVersion"]}")
    api("com.google.protobuf:protobuf-java-util:${rootProject.ext["protobufVersion"]}")
    api("com.google.protobuf:protobuf-kotlin:${rootProject.ext["protobufVersion"]}")
    api("io.grpc:grpc-kotlin-stub:${rootProject.ext["grpcKotlinVersion"]}")
}

protobuf {
    protoc {
        artifact = "com.google.protobuf:protoc:${rootProject.ext["protobufVersion"]}"
    }
    plugins {
        create("grpc") {
            artifact = "io.grpc:protoc-gen-grpc-java:${rootProject.ext["grpcVersion"]}"
        }
        create("grpckt") {
            artifact = "io.grpc:protoc-gen-grpc-kotlin:${rootProject.ext["grpcKotlinVersion"]}:jdk8@jar"
        }
    }
    generateProtoTasks {
        all().forEach {
            it.plugins {
                create("grpc")
                create("grpckt")
            }
            it.builtins {
                create("kotlin")
                create("java")
            }
            it.addIncludeDir(fileTree("full-path-to-input-folder"))
        }
    }
}

Running ./gradlew generateProto is successful but I can't find output files or declarations.
Screenshot 2023-11-05 at 10 24 33 PM

Thanks for your help.

@jamesward
Copy link
Collaborator

They should be in your project's build dir. If not, I will likely need a project that reproduces the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants