wire {
kotlin {
out "${projectDir}/src-gen/main/kotlin"
}
}
Because of that I see errors such as:
Copy code
- Gradle detected a problem with the following location: 'module/src-gen/main/kotlin'. Reason: Task ':moudle:compileReleaseKotlin' uses this output of task ':module:generateDebugProtos' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to <https://docs.gradle.org/7.6.1/userguide/validation_problems.html#implicit_dependency> for more details about this problem.
Is there a way for me to remove the different variants of the generateProtos task? I only need
generateProtos
.
b
Benoit Quenaudon
07/14/2023, 6:08 AM
The workaround for now would be to create another non-Android module, generate there and consume it from the Android module
r
ralf
07/14/2023, 2:47 PM
That’s what I ended up doing. The downside of this approach is that I either end up with a large proto module or many extra modules if I split the proto generation for unrelated parts of the app. I wish the WireTask would allow me to override this per target.
Thanks for confirming.
b
Benoit Quenaudon
07/14/2023, 2:49 PM
If that’s a library, you could as well disable the release variant.