google / google/protobuf-gradle-plugin

protobuf doesn't see .proto files in gradle project

Open
#555 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
1.8k
Forks
288
PR merge metrics
No merged PRs in 30d

Description

Protobuf plugin for gradle:
`id 'com.google.protobuf' version '0.8.13'`

Here is dependencies from build.gradle
`implementation "io.grpc:grpc-protobuf:${grpcVersion}"`
`implementation "io.grpc:grpc-stub:${grpcVersion}"`
`compileOnly 'javax.annotation:javax.annotation-api:1.3.2'`
`implementation "com.google.protobuf:protobuf-java:${protobufVersion}"`
`runtimeOnly "io.grpc:grpc-netty-shaded:${grpcVersion}"`

I'm trying to start a test in a project. But I get the following error:
`Could not make proto path relative: D:\Users\�������������\IdeaProjects\service-tester\src\main\proto\messaging_core\message\message.proto: No such file or directory`

while `message.proto` file is present in the project
![Screenshot_1](https://user-images.githubusercontent.com/17683306/163944074-9baef9fe-15b1-4375-8b19-1676b66a92de.png)

What I need to make protobuf start to see .proto files ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.