ralf
07/13/2023, 8:39 PMout
directory for Wire in an Android library module:
wire {
kotlin {
out "${projectDir}/src-gen/main/kotlin"
}
}
Because of that I see errors such as:
- 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
.Benoit Quenaudon
07/14/2023, 6:08 AMralf
07/14/2023, 2:47 PMBenoit Quenaudon
07/14/2023, 2:49 PMBenoit Quenaudon
07/14/2023, 2:51 PMplugins.withType(com.android.build.gradle.AppPlugin) { plugin ->
project.extensions.configure(com.android.build.api.variant.AndroidComponentsExtension) { extension ->
extension.beforeVariants(extension.selector().withName('release')) { variant ->
variant.enable = false
}
}
}
Benoit Quenaudon
07/14/2023, 2:53 PMralf
07/14/2023, 5:39 PM