square / square/wire

Need an API to allow a Wire task to depend on another Wire task.

Open
#1,420 3 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

Right now, I don't think I can do something like the following.

// Module `a`
wire {
  sourcePath 'all-protos'
  proto {
    out 'src/main/protos'
  }
}
// Module `b`
wire {
  sourcePath project(':a')
  kotlin {}
}

I have one big source of protos, I wanna prune them, generate new proto files, and wanna generate kotlin from this generated proto files.

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

The issue names no implementation file or test; start by tracing how the Wire task and its sourcePath/proto configuration are defined. Compare the two-module example and verify that one task can consume the generated proto output of another, with task ordering and generated Kotlin output working as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.