secrets-gradle-plugin icon indicating copy to clipboard operation
secrets-gradle-plugin copied to clipboard

Properties are not injected if the plugin is applied before the Android plugin

Open 0neel opened this issue 3 years ago • 1 comments

If the plugin is added before com.android.application it silently skips properties injection. I believe it should fail the build in this case. Or, at least, docs should mention that the order is important. It took me several hours to understand why the properties are not injected when after some refactoring I accidentally changed the order of plugins.

0neel avatar Feb 14 '23 14:02 0neel

Thank you, I also lost an hour chasing this until I found this issue. Agree that this should be documented or, fail the build with an explanatory error message, or otherwise fixed so that ordering is not important

jamesncl avatar Feb 14 '23 15:02 jamesncl