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:
wire {} block in build.gradle.I vote 2. Doing anything during configuration is probably wrong. That path could be generated by a task that hasn't run yet.
Hmm, I tried to reproduce in a wire-plugin-test with a build.gradle without any wire block but it doesn't seem to trouble things.
Most helpful comment
I vote 2. Doing anything during configuration is probably wrong. That path could be generated by a task that hasn't run yet.