Skip to content

Commit

Permalink
Pass filtered proto sources to generate proto task
Browse files Browse the repository at this point in the history
fix: #620
  • Loading branch information
rougsig committed Oct 7, 2022
1 parent 4f95b10 commit aaa0997
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class ProtobufPlugin implements Plugin<Project> {
Provider<ProtobufExtract> extractIncludeProtosTask = setupExtractIncludeProtosTask(
sourceSet.name, compileProtoPath, sourceSet.compileClasspath)
Provider<GenerateProtoTask> generateProtoTask = addGenerateProtoTask(
sourceSet.name, protoSrcDirSet.sourceDirectories, project.files(extractProtosTask),
sourceSet.name, protoSrcDirSet, project.files(extractProtosTask),
extractIncludeProtosTask) {
it.sourceSet = sourceSet
it.doneInitializing()
Expand Down Expand Up @@ -321,7 +321,7 @@ class ProtobufPlugin implements Plugin<Project> {

// GenerateProto task, one per variant (compilation unit).
FileCollection sourceDirs = project.files(project.providers.provider {
variant.sourceSets.collect { it.proto.sourceDirectories }
variant.sourceSets.collect { it.proto }
})
FileCollection extractProtosDirs = project.files(project.providers.provider {
variant.sourceSets.collect {
Expand Down

0 comments on commit aaa0997

Please sign in to comment.