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

Exclude a file thats not a proto file. #710

Open
johnnyzen opened this issue May 31, 2023 · 1 comment
Open

Exclude a file thats not a proto file. #710

johnnyzen opened this issue May 31, 2023 · 1 comment

Comments

@johnnyzen
Copy link

Android Studio Plugin : com.google.protobuf:protobuf-gradle-plugin:0.9.0

Hi all,

I am trying to exclude a file that is within the proto folder, as I getting an error:

WARNING T:\src\github\protobuf\src\google\protobuf\compiler\parser.cc:647] No syntax specified for the proto file: .editorconfig.

within the android block, I am trying to exclude this file by adding exclude:

sourceSets { main { proto { srcDir 'src/main/cloud-proto/' exclude '.editorconfig' } proto { srcDir 'src/main/custom-proto/' } } }

Is this the right approach?

@hijamoya
Copy link

hijamoya commented Sep 28, 2023

Same problem here, after upgrading to gradle 8.0, the plugin start to compile non proto files which does not happen in gradle 7.4.

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