Gradle plugin shouldn't fail during configuration phase if there's no wire {} block
Open
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:
- Not fail during configuration if there's no
wire {}block inbuild.gradle. - Not fail during configuration at all, only during execution.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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