square / square/wire

How can I use wire-maven-plugin to compile many proto files?

Open
#676 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
4.4k
Forks
627
Avg merge
3d 15m
Merged PRs (30d)
20

Description

  1. My proto files is to much, so that I want not to write each like<protoFile>xxx.proto</protoFile>.Is there a way to have a wild card?I would appreciate it if you could give me a reply!

<build> <plugins> <plugin> <groupId>com.squareup.wire</groupId> <artifactId>wire-maven-plugin</artifactId> <version>${wire.version}</version> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>generate-sources</goal> </goals> <configuration> <protoFiles> <protoFile>Admin.proto</protoFile> <protoFile>CommonModel.proto</protoFile> <protoFile>User.proto</protoFile> <protoFile>Route.proto</protoFile> <protoFile>BasicMessage.proto</protoFile> .... </protoFiles> </configuration> </execution> </executions> </plugin> </plugins> </build>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the wire-maven-plugin configuration for the protoFiles and protoFile elements. Determine whether wildcard selection is supported and how many proto files should be discovered; done means users can configure a wildcard instead of listing each file and the behavior is covered by the plugin's existing checks or tests.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.