google / google/protobuf-gradle-plugin

Exclude a file thats not a proto file.

Open
#710 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

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?

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.