Here is a sample project: https://github.com/fengdai/wire-rc1-issue-sample

I haven't looked through the source, but I suspect the Gradle plugin is not adding those sources to the classpath.
I ran into this too and hacked around it by adding:
sourceSets {
main.java.srcDirs += "$buildDir/generated/src/main/java"
}
@MorrisonCole what would be equivalent code for kotlin dsl?
EDIT: Following works
sourceSets {
getByName("main") {
this.java.srcDir("$buildDir/generated/source/")
}
}
Most helpful comment
I haven't looked through the source, but I suspect the Gradle plugin is not adding those sources to the classpath.
I ran into this too and hacked around it by adding: