mybatis-generator-plugin icon indicating copy to clipboard operation
mybatis-generator-plugin copied to clipboard

This plugin is not using lazy property

Open rajpra8 opened this issue 3 years ago • 2 comments

In our project, we have encrypted database password as property. Only certain developer has access to encryption key. But since it is not lazy property, when automated process is trying to build our project, it fails as it tries to load mybatisProperties

https://github.com/kimichen13/mybatis-generator-plugin/blob/9905950d427af3f8873e635589abc548f0d8a5c6/src/main/groovy/com/thinkimi/gradle/MybatisGeneratorExtension.groovy#L15

Can we make the mybatisProperties as MapProperty<String, String) so that it gets loaded when developer needs to call this task?

rajpra8 avatar Sep 21 '22 00:09 rajpra8

I have created pr https://github.com/kimichen13/mybatis-generator-plugin/pull/19 to address this. Please let me know if this can be merged. Unit test and integration test passed. Please let me know if there is other manual testing I should do.

rajpra8 avatar Sep 21 '22 00:09 rajpra8

Thank you for your feedback, but this plugin should be used in the development phase to generate the related classes based on the table structure. Although lazy property can be used, it just feels very wired.

kimichen13 avatar Oct 04 '22 12:10 kimichen13

@kimichen13 I am using in development phase only but I have kept in main build.gradle. Since some gradle tasks gets used in CI process, its getting loaded because this not being lazy property. Do you see any harm in merging this pr?

rajpra8 avatar Nov 04 '22 18:11 rajpra8

@kimichen13 gentle reminder to reconsider. Please decline the pr if you don't want to merge this pr. I will try to fork and make this change in my forked branch if this change does not belong this repo.

rajpra8 avatar Jan 23 '23 21:01 rajpra8

Thanks to reach out to me again. I will give you response later after few days, since I’m in Chinese new year holiday now.

On Tue, Jan 24, 2023 at 05:25 rajpra8 @.***> wrote:

@kimichen13 https://github.com/kimichen13 gentle reminder to reconsider. Please decline the pr if you don't want to merge this pr. I will try to fork and make this change in my forked branch if this change does not belong this repo.

— Reply to this email directly, view it on GitHub https://github.com/kimichen13/mybatis-generator-plugin/issues/18#issuecomment-1401002611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBDCTLDK7NZYSZQQBJP4G3WT3ZNJANCNFSM6AAAAAAQRSMSPM . You are receiving this because you were mentioned.Message ID: @.***>

kimichen13 avatar Jan 26 '23 07:01 kimichen13