Skip to content

Commit a3e2d48

Browse files
committed
Fix *.proto ending up in JAR
1 parent be65c5e commit a3e2d48

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ subprojects {
4646
from sourceSets.main.allSource
4747
}
4848

49+
// Protobuf files would uselessly end up in the JAR otherwise, see
50+
// https://github.com/google/protobuf-gradle-plugin/issues/390
51+
tasks.withType(Jar).configureEach {
52+
exclude '**/*.proto'
53+
includeEmptyDirs false
54+
}
55+
4956
tasks.withType(Test).configureEach {
5057
testLogging {
5158
events "skipped", "failed"

0 commit comments

Comments
 (0)