square / square/wire

Gradle plugin shouldn't fail during configuration phase if there's no wire {} block

Open
#1,313 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I applied the plugin:

buildscript {
    dependencies {
        classpath 'com.squareup.wire:wire-gradle-plugin:3.0.2'
    }
}

apply plugin: 'com.squareup.wire'

And immediately after "Import changes" got a configuration failure:

> Invalid path string: "src/main/proto". Path does not exist.

This feels too aggressive. Perhaps the plugin should either:

  1. Not fail during configuration if there's no wire {} block in build.gradle.
  2. Not fail during configuration at all, only during execution.

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 with the build.gradle configuration shown in the issue and reproduce the failure during Import changes when no wire {} block is present. Inspect the Gradle plugin's configuration-phase handling; done means applying the plugin without that block no longer fails during configuration, though the issue leaves the preferred behavior unresolved.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
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.